From 2626ef613e04e6a97b601be5a582cac6766665c8 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 2 Dec 2002 01:40:05 +0000 Subject: Use compare_string_array in ipaddress to save a few bytes, minor cleanups --- networking/libiproute/iplink.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'networking/libiproute/iplink.c') diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index c9d218a11..33f38918a 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) { -- cgit v1.2.3