Packets without a DHCP_MESSAGE_TYPE option are probably just BOOTP
authorMichael Brown <mcb30@etherboot.org>
Thu, 20 Jul 2006 00:03:25 +0000 (00:03 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 20 Jul 2006 00:03:25 +0000 (00:03 +0000)
packets.

src/net/udp/dhcp.c

index 1396863..a0738b7 100644 (file)
@@ -66,6 +66,7 @@ static uint8_t dhcp_request_options_data[] = {
  */
 static inline const char * dhcp_message_type_name ( unsigned int msgtype ) {
        switch ( msgtype ) {
+       case 0:                 return "BOOTP"; /* Non-DHCP packet */
        case DHCPDISCOVER:      return "DHCPDISCOVER";
        case DHCPOFFER:         return "DHCPOFFER";
        case DHCPREQUEST:       return "DHCPREQUEST";