diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-14 08:54:08 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-14 08:54:08 +0000 |
commit | ab4e19afc66e13b6aac7429fdce95d2aa7cb15ae (patch) | |
tree | 712b347dc89d890fe0d5755ebbbe9c23eb891a4c /networking/libiproute | |
parent | 92a06d0943a7890b6e69d9ad955feb6d138713b7 (diff) | |
download | busybox-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')
-rw-r--r-- | networking/libiproute/iplink.c | 15 | ||||
-rw-r--r-- | networking/libiproute/iptunnel.c | 9 | ||||
-rw-r--r-- | networking/libiproute/ll_addr.c | 6 |
3 files changed, 19 insertions, 11 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 | |||
32 | static int do_link; | 41 | static int do_link; |
33 | 42 | ||
34 | static int on_off(char *msg) | 43 | static int on_off(char *msg) |
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index dcf717e7e..1eb17799c 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -25,10 +25,13 @@ | |||
25 | 25 | ||
26 | #include <arpa/inet.h> | 26 | #include <arpa/inet.h> |
27 | #include <netinet/ip.h> | 27 | #include <netinet/ip.h> |
28 | #include <netinet/in.h> | ||
28 | 29 | ||
29 | #define sysinfo kernel_sysinfo | 30 | #include <net/if.h> |
30 | #include <linux/if_arp.h> | 31 | #include <net/if_arp.h> |
31 | #undef sysinfo | 32 | |
33 | #include <asm/types.h> | ||
34 | #define __constant_htons htons | ||
32 | #include <linux/if_tunnel.h> | 35 | #include <linux/if_tunnel.h> |
33 | 36 | ||
34 | #include "rt_names.h" | 37 | #include "rt_names.h" |
diff --git a/networking/libiproute/ll_addr.c b/networking/libiproute/ll_addr.c index 08d5b78f8..39e561fe5 100644 --- a/networking/libiproute/ll_addr.c +++ b/networking/libiproute/ll_addr.c | |||
@@ -11,11 +11,7 @@ | |||
11 | 11 | ||
12 | #include <arpa/inet.h> | 12 | #include <arpa/inet.h> |
13 | #include <string.h> | 13 | #include <string.h> |
14 | 14 | #include <net/if_arp.h> | |
15 | #define sysinfo kernel_sysinfo | ||
16 | #include <linux/if_arp.h> | ||
17 | #undef sysinfo | ||
18 | |||
19 | #include "utils.h" | 15 | #include "utils.h" |
20 | #include "libbb.h" | 16 | #include "libbb.h" |
21 | 17 | ||