diff options
author | Stefan Seyfried <seife+dev@b1-systems.com> | 2011-02-21 17:29:59 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-26 20:11:47 +0100 |
commit | da4441c44f6efccb6f7b7588404d9c6bfb7b6af8 (patch) | |
tree | 016d8f26b16283d230ac5589862b74c3fec27ba4 | |
parent | 301fe50ca2576291a427de46ca6ed64d4949713e (diff) | |
download | busybox-w32-da4441c44f6efccb6f7b7588404d9c6bfb7b6af8.tar.gz busybox-w32-da4441c44f6efccb6f7b7588404d9c6bfb7b6af8.tar.bz2 busybox-w32-da4441c44f6efccb6f7b7588404d9c6bfb7b6af8.zip |
fix libiproute compile with kernel headers < 2.6.17
Signed-off-by: Stefan Seyfried <seife+dev@b1-systems.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/libiproute/ipaddress.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 397a8ee34..b3748e8c5 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -162,6 +162,8 @@ static NOINLINE int print_linkinfo(const struct nlmsghdr *n) | |||
162 | printf("master %s ", ll_idx_n2a(*(int*)RTA_DATA(tb[IFLA_MASTER]), b1)); | 162 | printf("master %s ", ll_idx_n2a(*(int*)RTA_DATA(tb[IFLA_MASTER]), b1)); |
163 | } | 163 | } |
164 | #endif | 164 | #endif |
165 | /* IFLA_OPERSTATE was added to kernel with the same commit as IFF_DORMANT */ | ||
166 | #ifdef IFF_DORMANT | ||
165 | if (tb[IFLA_OPERSTATE]) { | 167 | if (tb[IFLA_OPERSTATE]) { |
166 | static const char operstate_labels[] ALIGN1 = | 168 | static const char operstate_labels[] ALIGN1 = |
167 | "UNKNOWN\0""NOTPRESENT\0""DOWN\0""LOWERLAYERDOWN\0" | 169 | "UNKNOWN\0""NOTPRESENT\0""DOWN\0""LOWERLAYERDOWN\0" |
@@ -169,6 +171,7 @@ static NOINLINE int print_linkinfo(const struct nlmsghdr *n) | |||
169 | printf("state %s ", nth_string(operstate_labels, | 171 | printf("state %s ", nth_string(operstate_labels, |
170 | *(uint8_t *)RTA_DATA(tb[IFLA_OPERSTATE]))); | 172 | *(uint8_t *)RTA_DATA(tb[IFLA_OPERSTATE]))); |
171 | } | 173 | } |
174 | #endif | ||
172 | if (G_filter.showqueue) | 175 | if (G_filter.showqueue) |
173 | print_queuelen((char*)RTA_DATA(tb[IFLA_IFNAME])); | 176 | print_queuelen((char*)RTA_DATA(tb[IFLA_IFNAME])); |
174 | 177 | ||