aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-08 18:13:57 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-08 18:13:57 +0200
commitf2bf20f5d54769ca3c4f83ac8fbcb7e697b2e66a (patch)
tree727362e4fc7528548bee677556bbac509fb442c9 /networking
parent8403b01217d4dfc86e8603715eeb52f9993e09b7 (diff)
downloadbusybox-f2bf20f5d54769ca3c4f83ac8fbcb7e697b2e66a.tar.gz
udhcpc: fix for some Android toolchain breakage
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/udhcp/dhcpc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 11f7b2d49..915f65935 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -29,6 +29,20 @@
#include <linux/filter.h>
#include <linux/if_packet.h>
+#ifndef PACKET_AUXDATA
+# define PACKET_AUXDATA 8
+struct tpacket_auxdata {
+ uint32_t tp_status;
+ uint32_t tp_len;
+ uint32_t tp_snaplen;
+ uint16_t tp_mac;
+ uint16_t tp_net;
+ uint16_t tp_vlan_tci;
+ uint16_t tp_padding;
+};
+#endif
+
+
/* "struct client_config_t client_config" is in bb_common_bufsiz1 */