diff options
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r-- | networking/udhcp/clientpacket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c index 439aa0250..58b26c171 100644 --- a/networking/udhcp/clientpacket.c +++ b/networking/udhcp/clientpacket.c | |||
@@ -216,14 +216,14 @@ int get_raw_packet(struct dhcpMessage *payload, int fd) | |||
216 | packet.ip.daddr = dest; | 216 | packet.ip.daddr = dest; |
217 | packet.ip.tot_len = packet.udp.len; /* cheat on the psuedo-header */ | 217 | packet.ip.tot_len = packet.udp.len; /* cheat on the psuedo-header */ |
218 | if (check && check != udhcp_checksum(&packet, bytes)) { | 218 | if (check && check != udhcp_checksum(&packet, bytes)) { |
219 | bb_error_msg("Packet with bad UDP checksum received, ignoring"); | 219 | bb_error_msg("packet with bad UDP checksum received, ignoring"); |
220 | return -2; | 220 | return -2; |
221 | } | 221 | } |
222 | 222 | ||
223 | memcpy(payload, &(packet.data), bytes - (sizeof(packet.ip) + sizeof(packet.udp))); | 223 | memcpy(payload, &(packet.data), bytes - (sizeof(packet.ip) + sizeof(packet.udp))); |
224 | 224 | ||
225 | if (ntohl(payload->cookie) != DHCP_MAGIC) { | 225 | if (ntohl(payload->cookie) != DHCP_MAGIC) { |
226 | bb_error_msg("Received bogus message (bad magic) - ignoring"); | 226 | bb_error_msg("received bogus message (bad magic) - ignoring"); |
227 | return -2; | 227 | return -2; |
228 | } | 228 | } |
229 | DEBUG("oooooh!!! got some!"); | 229 | DEBUG("oooooh!!! got some!"); |