Browse Source

Packets without a DHCP_MESSAGE_TYPE option are probably just BOOTP

packets.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
881b90e82c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/net/udp/dhcp.c

+ 1
- 0
src/net/udp/dhcp.c View File

@@ -66,6 +66,7 @@ static uint8_t dhcp_request_options_data[] = {
66 66
  */
67 67
 static inline const char * dhcp_message_type_name ( unsigned int msgtype ) {
68 68
 	switch ( msgtype ) {
69
+	case 0:			return "BOOTP"; /* Non-DHCP packet */
69 70
 	case DHCPDISCOVER:	return "DHCPDISCOVER";
70 71
 	case DHCPOFFER:		return "DHCPOFFER";
71 72
 	case DHCPREQUEST:	return "DHCPREQUEST";

Loading…
Cancel
Save