aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iplink.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-14 08:54:08 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-14 08:54:08 +0000
commitab4e19afc66e13b6aac7429fdce95d2aa7cb15ae (patch)
tree712b347dc89d890fe0d5755ebbbe9c23eb891a4c /networking/libiproute/iplink.c
parent92a06d0943a7890b6e69d9ad955feb6d138713b7 (diff)
downloadbusybox-w32-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.tar.gz
busybox-w32-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.tar.bz2
busybox-w32-ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae.zip
Eliminate most instances where we use linux kernel headers
-Erik
Diffstat (limited to 'networking/libiproute/iplink.c')
-rw-r--r--networking/libiproute/iplink.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 3b2f4dac1..1cfaf6d6a 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -18,10 +18,15 @@
18#include <string.h> 18#include <string.h>
19#include <unistd.h> 19#include <unistd.h>
20 20
21#include <linux/if.h> 21#include <net/if.h>
22#include <linux/if_packet.h> 22#include <net/if_packet.h>
23#include <netpacket/packet.h>
24
25#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1
26#include <net/ethernet.h>
27#else
23#include <linux/if_ether.h> 28#include <linux/if_ether.h>
24#include <linux/sockios.h> 29#endif
25 30
26#include "rt_names.h" 31#include "rt_names.h"
27#include "utils.h" 32#include "utils.h"
@@ -29,6 +34,10 @@
29 34
30#include "libbb.h" 35#include "libbb.h"
31 36
37
38/* take from linux/sockios.h */
39#define SIOCSIFNAME 0x8923 /* set interface name */
40
32static int do_link; 41static int do_link;
33 42
34static int on_off(char *msg) 43static int on_off(char *msg)