projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This seems sufficient for ifup and ifdown to actually work
[oweals/busybox.git]
/
networking
/
libiproute
/
iplink.c
diff --git
a/networking/libiproute/iplink.c
b/networking/libiproute/iplink.c
index 3b2f4dac1b771ec3c902fa52b445ca32ec8f3486..1cfaf6d6a05621920d376cd261c3c3087ff4a6f3 100644
(file)
--- a/
networking/libiproute/iplink.c
+++ b/
networking/libiproute/iplink.c
@@
-18,10
+18,15
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
-#include <linux/if.h>
-#include <linux/if_packet.h>
+#include <net/if.h>
+#include <net/if_packet.h>
+#include <netpacket/packet.h>
+
+#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1
+#include <net/ethernet.h>
+#else
#include <linux/if_ether.h>
#include <linux/if_ether.h>
-#
include <linux/sockios.h>
+#
endif
#include "rt_names.h"
#include "utils.h"
#include "rt_names.h"
#include "utils.h"
@@
-29,6
+34,10
@@
#include "libbb.h"
#include "libbb.h"
+
+/* take from linux/sockios.h */
+#define SIOCSIFNAME 0x8923 /* set interface name */
+
static int do_link;
static int on_off(char *msg)
static int do_link;
static int on_off(char *msg)