aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/clientpacket.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r--networking/udhcp/clientpacket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c
index 528befde6..e377bd236 100644
--- a/networking/udhcp/clientpacket.c
+++ b/networking/udhcp/clientpacket.c
@@ -205,8 +205,8 @@ int get_raw_packet(struct dhcpMessage *payload, int fd)
205 packet.ip.ihl != sizeof(packet.ip) >> 2 || packet.udp.dest != htons(CLIENT_PORT) || 205 packet.ip.ihl != sizeof(packet.ip) >> 2 || packet.udp.dest != htons(CLIENT_PORT) ||
206 bytes > (int) sizeof(struct udp_dhcp_packet) || 206 bytes > (int) sizeof(struct udp_dhcp_packet) ||
207 ntohs(packet.udp.len) != (uint16_t) (bytes - sizeof(packet.ip))) { 207 ntohs(packet.udp.len) != (uint16_t) (bytes - sizeof(packet.ip))) {
208 DEBUG(LOG_INFO, "unrelated/bogus packet"); 208 DEBUG(LOG_INFO, "unrelated/bogus packet");
209 return -2; 209 return -2;
210 } 210 }
211 211
212 /* check IP checksum */ 212 /* check IP checksum */