From patchwork Wed Sep 13 17:58:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Claudi X-Patchwork-Id: 13383646 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 899FD1798E for ; Wed, 13 Sep 2023 17:58:48 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B420619AF for ; Wed, 13 Sep 2023 10:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694627926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pc0YBnnQvigZbTYj35NCXLikktn4/P6vHV3/P7dg5gE=; b=FgGJaADaPAU5/W3Wxim7txFMsVMGGBLoM1+grUKknK0jJkVNQEoJJdn9VpEoYzdOstsp+e u08+vUJnQe8gOTMYhQYAzq7qe/BW+gaJOezcG/0tWn8UP99YFEHdPfjlbFM02CFz9P+xmA BY4RPFzUXfdA3eGJNuzHZBBQCoK0x4g= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-66-mPs51VFUMHuNXnRqFL3sRA-1; Wed, 13 Sep 2023 13:58:41 -0400 X-MC-Unique: mPs51VFUMHuNXnRqFL3sRA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 10E7A811738; Wed, 13 Sep 2023 17:58:41 +0000 (UTC) Received: from renaissance-vector.redhat.com (unknown [10.39.193.129]) by smtp.corp.redhat.com (Postfix) with ESMTP id AEA1F40C6EA8; Wed, 13 Sep 2023 17:58:38 +0000 (UTC) From: Andrea Claudi To: netdev@vger.kernel.org Cc: Roopa Prabhu , Nikolay Aleksandrov , bridge@lists.linux-foundation.org, Stephen Hemminger , David Ahern Subject: [PATCH iproute2-next 0/2] configure: add support for color Date: Wed, 13 Sep 2023 19:58:24 +0200 Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Patchwork-Delegate: dsahern@gmail.com This series add support for the color parameter in iproute2 configure script. The idea is to make it possible for iproute2 users and packagers to set a default value for the color option different from the current one, COLOR_OPT_NEVER, while maintaining the current default behaviour. Patch 1 add the color option to the configure script. Users can set three different values, never, auto and always, with the same meanings they have for the -c / -color ip option. Default value is 'never', which results in ip, tc and bridge to maintain their current output behaviour (i.e. colorless output). Patch 2 makes it possible for ip, tc and bridge to use the configured value for color as their default color output. Andrea Claudi (2): configure: add the --color option treewide: use configured value as the default color output Makefile | 3 ++- bridge/bridge.c | 3 ++- configure | 37 +++++++++++++++++++++++++++++++++++++ ip/ip.c | 2 +- tc/tc.c | 2 +- 5 files changed, 43 insertions(+), 4 deletions(-)