diff options
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r-- | networking/udhcp/clientpacket.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c index 3f9522ff8..068f947cc 100644 --- a/networking/udhcp/clientpacket.c +++ b/networking/udhcp/clientpacket.c | |||
@@ -37,11 +37,11 @@ uint32_t FAST_FUNC random_xid(void) | |||
37 | } | 37 | } |
38 | 38 | ||
39 | 39 | ||
40 | /* initialize a packet with the proper defaults */ | 40 | /* Initialize the packet with the proper defaults */ |
41 | static void init_packet(struct dhcpMessage *packet, char type) | 41 | static void init_packet(struct dhcpMessage *packet, char type) |
42 | { | 42 | { |
43 | udhcp_init_header(packet, type); | 43 | udhcp_init_header(packet, type); |
44 | memcpy(packet->chaddr, client_config.arp, 6); | 44 | memcpy(packet->chaddr, client_config.client_mac, 6); |
45 | if (client_config.clientid) | 45 | if (client_config.clientid) |
46 | add_option_string(packet->options, client_config.clientid); | 46 | add_option_string(packet->options, client_config.clientid); |
47 | if (client_config.hostname) | 47 | if (client_config.hostname) |
@@ -122,6 +122,7 @@ int FAST_FUNC send_decline(uint32_t xid, uint32_t server, uint32_t requested) | |||
122 | } | 122 | } |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | |||
125 | /* Broadcast a DHCP discover packet to the network, with an optionally requested IP */ | 126 | /* Broadcast a DHCP discover packet to the network, with an optionally requested IP */ |
126 | int FAST_FUNC send_discover(uint32_t xid, uint32_t requested) | 127 | int FAST_FUNC send_discover(uint32_t xid, uint32_t requested) |
127 | { | 128 | { |
@@ -143,7 +144,7 @@ int FAST_FUNC send_discover(uint32_t xid, uint32_t requested) | |||
143 | } | 144 | } |
144 | 145 | ||
145 | 146 | ||
146 | /* Broadcasts a DHCP request message */ | 147 | /* Broadcast a DHCP request message */ |
147 | /* RFC 2131 3.1 paragraph 3: | 148 | /* RFC 2131 3.1 paragraph 3: |
148 | * "The client _broadcasts_ a DHCPREQUEST message..." | 149 | * "The client _broadcasts_ a DHCPREQUEST message..." |
149 | */ | 150 | */ |