diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-04 13:12:16 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-04 13:12:16 +0000 |
commit | d55fe3e595eb0aad60484d273e251cfee4ef8aa5 (patch) | |
tree | 1b9ff57d70411902db36582da8dbaded99485eeb /networking/udhcp/dhcpc.h | |
parent | e8ef7ec7de0cd9906b42a94eddb800ed1229a614 (diff) | |
download | busybox-w32-d55fe3e595eb0aad60484d273e251cfee4ef8aa5.tar.gz busybox-w32-d55fe3e595eb0aad60484d273e251cfee4ef8aa5.tar.bz2 busybox-w32-d55fe3e595eb0aad60484d273e251cfee4ef8aa5.zip |
udhcp: optional support for non-standard DHCP ports (+300 bytes when selected)
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r-- | networking/udhcp/dhcpc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h index bc05754ac..4b8f3ec98 100644 --- a/networking/udhcp/dhcpc.h +++ b/networking/udhcp/dhcpc.h | |||
@@ -29,11 +29,19 @@ struct client_config_t { | |||
29 | uint8_t *hostname; /* Optional hostname to use */ | 29 | uint8_t *hostname; /* Optional hostname to use */ |
30 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ | 30 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ |
31 | int ifindex; /* Index number of the interface to use */ | 31 | int ifindex; /* Index number of the interface to use */ |
32 | uint16_t port; | ||
32 | uint8_t arp[6]; /* Our arp address */ | 33 | uint8_t arp[6]; /* Our arp address */ |
33 | uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */ | 34 | uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */ |
34 | }; | 35 | }; |
35 | 36 | ||
36 | #define client_config (*(struct client_config_t*)&bb_common_bufsiz1) | 37 | /* server_config sits in 1st half of bb_common_bufsiz1 */ |
38 | #define client_config (*(struct client_config_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE/2])) | ||
39 | |||
40 | #if ENABLE_FEATURE_UDHCP_PORT | ||
41 | #define CLIENT_PORT (client_config.port) | ||
42 | #else | ||
43 | #define CLIENT_PORT 68 | ||
44 | #endif | ||
37 | 45 | ||
38 | 46 | ||
39 | /*** clientpacket.h ***/ | 47 | /*** clientpacket.h ***/ |