aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-04 13:23:53 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-04 13:23:53 +0000
commitb386c1c614a94b847da7d059367bc9d4fcb33f14 (patch)
tree4a27e3a393dc08cd03ee88ce5db185b449c130ac
parentd55fe3e595eb0aad60484d273e251cfee4ef8aa5 (diff)
downloadbusybox-w32-b386c1c614a94b847da7d059367bc9d4fcb33f14.tar.gz
busybox-w32-b386c1c614a94b847da7d059367bc9d4fcb33f14.tar.bz2
busybox-w32-b386c1c614a94b847da7d059367bc9d4fcb33f14.zip
udhcp: ifdef out unused members
-rw-r--r--networking/udhcp/dhcpc.h2
-rw-r--r--networking/udhcp/dhcpd.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index 4b8f3ec98..d0fde7302 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -29,7 +29,9 @@ 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#if ENABLE_FEATURE_UDHCP_PORT
32 uint16_t port; 33 uint16_t port;
34#endif
33 uint8_t arp[6]; /* Our arp address */ 35 uint8_t arp[6]; /* Our arp address */
34 uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */ 36 uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */
35}; 37};
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index fe45ca312..d97c8b8f7 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -28,7 +28,9 @@ struct static_lease {
28 28
29struct server_config_t { 29struct server_config_t {
30 uint32_t server; /* Our IP, in network order */ 30 uint32_t server; /* Our IP, in network order */
31#if ENABLE_FEATURE_UDHCP_PORT
31 uint16_t port; 32 uint16_t port;
33#endif
32 /* start,end are in host order: we need to compare start <= ip <= end */ 34 /* start,end are in host order: we need to compare start <= ip <= end */
33 uint32_t start_ip; /* Start address of leases, in host order */ 35 uint32_t start_ip; /* Start address of leases, in host order */
34 uint32_t end_ip; /* End of leases, in host order */ 36 uint32_t end_ip; /* End of leases, in host order */