From 29e2c45a5b317556a890a86ca7780e589072151c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 23 Nov 2016 09:51:33 +0100 Subject: tc: consolidate its disabled bits Signed-off-by: Denys Vlasenko --- networking/Config.src | 10 ---------- networking/tc.c | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 11 deletions(-) (limited to 'networking') diff --git a/networking/Config.src b/networking/Config.src index 4d921884f..527bdd15d 100644 --- a/networking/Config.src +++ b/networking/Config.src @@ -48,16 +48,6 @@ config VERBOSE_RESOLUTION_ERRORS INSERT -#config TC -# bool "tc" -# default y -# help -# show / manipulate traffic control settings -# -#config FEATURE_TC_INGRESS -# def_bool n -# depends on TC - source networking/udhcp/Config.in config IFUPDOWN_UDHCPC_CMD_OPTIONS diff --git a/networking/tc.c b/networking/tc.c index e10200c1e..271d569e4 100644 --- a/networking/tc.c +++ b/networking/tc.c @@ -6,7 +6,22 @@ * * Bernhard Reutner-Fischer adjusted for busybox */ -//kbuild:lib-$(CONFIG_TC) += tc.o + +/* Was disabled in 2008 by Bernhard, not known why. +--//config:#config TC +--//config:# bool "tc" +--//config:# default y +--//config:# help +--//config:# Show / manipulate traffic control settings +--//config:# +--//config:#config FEATURE_TC_INGRESS +--//config:# default y +--//config:# depends on TC +-- +--//applet:IF_TC(APPLET(tc, BB_DIR_SBIN, BB_SUID_DROP)) +-- +--//kbuild:lib-$(CONFIG_TC) += tc.o +*/ //usage:#define tc_trivial_usage /* //usage: "[OPTIONS] OBJECT CMD [dev STRING]" */ -- cgit v1.2.3