summaryrefslogtreecommitdiffstats
path: root/src/net/udp/dhcp.c
diff options
context:
space:
mode:
authorMichael Brown2006-07-20 02:03:25 +0200
committerMichael Brown2006-07-20 02:03:25 +0200
commit881b90e82cd5bff1c4539493c70c12254307302d (patch)
tree70fe168e1127dee15f635c1d2c6b12d98f0817e0 /src/net/udp/dhcp.c
parentconn->local_port is now network-endian; do not swap when comparing (diff)
downloadipxe-881b90e82cd5bff1c4539493c70c12254307302d.tar.gz
ipxe-881b90e82cd5bff1c4539493c70c12254307302d.tar.xz
ipxe-881b90e82cd5bff1c4539493c70c12254307302d.zip
Packets without a DHCP_MESSAGE_TYPE option are probably just BOOTP
packets.
Diffstat (limited to 'src/net/udp/dhcp.c')
-rw-r--r--src/net/udp/dhcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 13968638..a0738b74 100644
--- a/src/net/udp/dhcp.c
+++ b/src/net/udp/dhcp.c
@@ -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";