diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-03 01:22:13 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-03 01:22:13 +0200 |
commit | 4ee824f6ba3f35228f1c48e21681aa532a7dc23f (patch) | |
tree | 75011c43b93dc3deb5587f1a6b9424f3bef5dd03 /networking/udhcp/packet.c | |
parent | 48c803a2064d5ae24540760f13a21f092247bd82 (diff) | |
download | busybox-w32-4ee824f6ba3f35228f1c48e21681aa532a7dc23f.tar.gz busybox-w32-4ee824f6ba3f35228f1c48e21681aa532a7dc23f.tar.bz2 busybox-w32-4ee824f6ba3f35228f1c48e21681aa532a7dc23f.zip |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/packet.c')
-rw-r--r-- | networking/udhcp/packet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index 0a31f2643..9e1b46d2f 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <netinet/if_ether.h> | 12 | #include <netinet/if_ether.h> |
13 | #include <netpacket/packet.h> | 13 | #include <netpacket/packet.h> |
14 | 14 | ||
15 | #if ENABLE_UDHCPC || ENABLE_UDHCPD | ||
15 | void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type) | 16 | void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type) |
16 | { | 17 | { |
17 | memset(packet, 0, sizeof(*packet)); | 18 | memset(packet, 0, sizeof(*packet)); |
@@ -29,6 +30,7 @@ void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type) | |||
29 | packet->options[0] = DHCP_END; | 30 | packet->options[0] = DHCP_END; |
30 | udhcp_add_simple_option(packet, DHCP_MESSAGE_TYPE, type); | 31 | udhcp_add_simple_option(packet, DHCP_MESSAGE_TYPE, type); |
31 | } | 32 | } |
33 | #endif | ||
32 | 34 | ||
33 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2 | 35 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2 |
34 | void FAST_FUNC udhcp_dump_packet(struct dhcp_packet *packet) | 36 | void FAST_FUNC udhcp_dump_packet(struct dhcp_packet *packet) |