aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iplink.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/iplink.c')
-rw-r--r--networking/libiproute/iplink.c9
1 files changed, 9 insertions, 0 deletions
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 @@
33 33
34#include "busybox.h" 34#include "busybox.h"
35 35
36static int do_link;
37
36static int on_off(char *msg) 38static int on_off(char *msg)
37{ 39{
38 error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg); 40 error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg);
@@ -332,6 +334,13 @@ static int do_set(int argc, char **argv)
332 return 0; 334 return 0;
333} 335}
334 336
337static int ipaddr_list_link(int argc, char **argv)
338{
339 preferred_family = AF_PACKET;
340 do_link = 1;
341 return ipaddr_list(argc, argv);
342}
343
335int do_iplink(int argc, char **argv) 344int do_iplink(int argc, char **argv)
336{ 345{
337 if (argc > 0) { 346 if (argc > 0) {