aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-05 14:01:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-05 14:01:04 +0000
commit9b6f4aa8e802c0811a45c36c572ade2036d46a4a (patch)
tree358e3c452d0ce02c599a0d34f33f17e93baf1f65
parentf592aa36f33430b866e9d7c975c6b9c356100d4b (diff)
downloadbusybox-w32-9b6f4aa8e802c0811a45c36c572ade2036d46a4a.tar.gz
busybox-w32-9b6f4aa8e802c0811a45c36c572ade2036d46a4a.tar.bz2
busybox-w32-9b6f4aa8e802c0811a45c36c572ade2036d46a4a.zip
ip: support for the LOWER_UP flag by Natanael Copa <natanael.copa@gmail.com>.
~50 bytes code growth.
-rw-r--r--networking/libiproute/ipaddress.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 3bf854e11..07b27870d 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -18,6 +18,10 @@
18#include "rt_names.h" 18#include "rt_names.h"
19#include "utils.h" 19#include "utils.h"
20 20
21#ifndef IFF_LOWER_UP
22/* from linux/if.h */
23#define IFF_LOWER_UP 0x10000 /* driver signals L1 up*/
24#endif
21 25
22typedef struct filter_t { 26typedef struct filter_t {
23 char *label; 27 char *label;
@@ -63,6 +67,7 @@ static void print_link_flags(unsigned flags, unsigned mdown)
63 _PF(NOTRAILERS); 67 _PF(NOTRAILERS);
64#endif 68#endif
65 _PF(UP); 69 _PF(UP);
70 _PF(LOWER_UP);
66#undef _PF 71#undef _PF
67 if (flags) 72 if (flags)
68 printf("%x", flags); 73 printf("%x", flags);