ip: support for the LOWER_UP flag by Natanael Copa <natanael.copa@gmail.com>.
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 5 Jun 2008 14:01:04 +0000 (14:01 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 5 Jun 2008 14:01:04 +0000 (14:01 -0000)
~50 bytes code growth.

networking/libiproute/ipaddress.c

index 3bf854e113bced440d07eae61d2fc125f6b88d3a..07b27870d87f457de05bee697080d3010cddc82e 100644 (file)
 #include "rt_names.h"
 #include "utils.h"
 
+#ifndef IFF_LOWER_UP
+/* from linux/if.h */
+#define IFF_LOWER_UP   0x10000         /* driver signals L1 up*/
+#endif
 
 typedef struct filter_t {
        char *label;
@@ -63,6 +67,7 @@ static void print_link_flags(unsigned flags, unsigned mdown)
        _PF(NOTRAILERS);
 #endif
        _PF(UP);
+       _PF(LOWER_UP);
 #undef _PF
        if (flags)
                printf("%x", flags);