diff options
author | Glenn L McGrath | 2002-12-02 01:40:05 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-12-02 01:40:05 +0000 |
commit | 2626ef613e04e6a97b601be5a582cac6766665c8 (patch) | |
tree | 7901fc668b030ea8a8d8e9a4fb05234d08262bcb /networking/libiproute/iplink.c | |
parent | 18eae0031adc86edc81cf398437f2716ef393bd3 (diff) | |
download | busybox-2626ef613e04e6a97b601be5a582cac6766665c8.zip busybox-2626ef613e04e6a97b601be5a582cac6766665c8.tar.gz |
Use compare_string_array in ipaddress to save a few bytes, minor cleanups
Diffstat (limited to 'networking/libiproute/iplink.c')
-rw-r--r-- | networking/libiproute/iplink.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index c9d218a..33f3891 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c @@ -33,6 +33,8 @@ #include "busybox.h" +static int do_link; + static int on_off(char *msg) { error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg); @@ -332,6 +334,13 @@ static int do_set(int argc, char **argv) return 0; } +static int ipaddr_list_link(int argc, char **argv) +{ + preferred_family = AF_PACKET; + do_link = 1; + return ipaddr_list(argc, argv); +} + int do_iplink(int argc, char **argv) { if (argc > 0) { |