From 9b6f4aa8e802c0811a45c36c572ade2036d46a4a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 5 Jun 2008 14:01:04 +0000 Subject: [PATCH] ip: support for the LOWER_UP flag by Natanael Copa . ~50 bytes code growth. --- networking/libiproute/ipaddress.c | 5 +++++ 1 file changed, 5 insertions(+) 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 @@ #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);