Root/package/busybox/patches/003-brctl_show_fix.patch

1--- a/networking/brctl.c
2+++ b/networking/brctl.c
3@@ -104,7 +104,7 @@ int brctl_main(int argc UNUSED_PARAM, ch
4         "setageing\0" "setfd\0" "sethello\0" "setmaxage\0"
5         "setpathcost\0" "setportprio\0" "setbridgeprio\0"
6     )
7- IF_FEATURE_BRCTL_SHOW("showmacs\0" "show\0");
8+ IF_FEATURE_BRCTL_SHOW("show\0");
9 
10     enum { ARG_addbr = 0, ARG_delbr, ARG_addif, ARG_delif
11         IF_FEATURE_BRCTL_FANCY(,
12@@ -112,7 +112,7 @@ int brctl_main(int argc UNUSED_PARAM, ch
13            ARG_setageing, ARG_setfd, ARG_sethello, ARG_setmaxage,
14            ARG_setpathcost, ARG_setportprio, ARG_setbridgeprio
15         )
16- IF_FEATURE_BRCTL_SHOW(, ARG_showmacs, ARG_show)
17+ IF_FEATURE_BRCTL_SHOW(, ARG_show)
18     };
19 
20     int fd;
21--- a/networking/Config.in
22+++ b/networking/Config.in
23@@ -77,12 +77,12 @@ config FEATURE_BRCTL_FANCY
24       This adds about 600 bytes.
25 
26 config FEATURE_BRCTL_SHOW
27- bool "Support show, showmac and showstp"
28+ bool "Support show"
29     default n
30     depends on BRCTL && FEATURE_BRCTL_FANCY
31     help
32       Add support for option which prints the current config:
33- showmacs, showstp, show
34+ show
35 
36 config DNSD
37     bool "dnsd"
38

Archive Download this file



interactive