aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:05:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:05:21 +0200
commited8982bfc0e9895fe707a5f6152cf184e06f2052 (patch)
treeff08bef8b550e5503cf54eb8f7fdd7e5f37875f5 /networking/udhcp/common.h
parent26918dd28ef6f2c6380ed23b384ddc8e98a8ad81 (diff)
downloadbusybox-w32-ed8982bfc0e9895fe707a5f6152cf184e06f2052.tar.gz
busybox-w32-ed8982bfc0e9895fe707a5f6152cf184e06f2052.tar.bz2
busybox-w32-ed8982bfc0e9895fe707a5f6152cf184e06f2052.zip
udhcp: add a few TODOs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/common.h')
-rw-r--r--networking/udhcp/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 91e8ccc53..0f12be063 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -23,6 +23,7 @@ extern const uint8_t MAC_BCAST_ADDR[6]; /* six all-ones */
23 23
24#define DHCP_OPTIONS_BUFSIZE 308 24#define DHCP_OPTIONS_BUFSIZE 308
25 25
26//TODO: rename to dhcp_packet; rename ciaddr/yiaddr/chaddr
26struct dhcpMessage { 27struct dhcpMessage {
27 uint8_t op; /* 1 = BOOTREQUEST, 2 = BOOTREPLY */ 28 uint8_t op; /* 1 = BOOTREQUEST, 2 = BOOTREPLY */
28 uint8_t htype; /* hardware address type. 1 = 10mb ethernet */ 29 uint8_t htype; /* hardware address type. 1 = 10mb ethernet */
@@ -44,6 +45,7 @@ struct dhcpMessage {
44 uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS]; 45 uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS];
45} PACKED; 46} PACKED;
46 47
48//TODO: rename to ip_udp_dhcp_packet?
47struct udp_dhcp_packet { 49struct udp_dhcp_packet {
48 struct iphdr ip; 50 struct iphdr ip;
49 struct udphdr udp; 51 struct udphdr udp;