aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bootp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-05-28 20:08:09 +0000
committerGuy Harris <guy@alum.mit.edu>2002-05-28 20:08:09 +0000
commit49fe4e742caefd4372bde56d1c8905e77cca0482 (patch)
tree922c922d0b5158437061378222f28f57394572c8 /packet-bootp.c
parent34a484d0d8078b35064623018a0b774f3725257e (diff)
From Joerg Mayer: dissect both the BOOTP server and client ports as
bootp/DHCP, to handle PXE clients that send BOOTP requests to destination ports other than 67. svn path=/trunk/; revision=5581
Diffstat (limited to 'packet-bootp.c')
-rw-r--r--packet-bootp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-bootp.c b/packet-bootp.c
index 659a3351ef..26d305201e 100644
--- a/packet-bootp.c
+++ b/packet-bootp.c
@@ -2,7 +2,7 @@
* Routines for BOOTP/DHCP packet disassembly
* Gilbert Ramirez <gram@alumni.rice.edu>
*
- * $Id: packet-bootp.c,v 1.63 2002/01/24 09:20:47 guy Exp $
+ * $Id: packet-bootp.c,v 1.64 2002/05/28 20:08:09 guy Exp $
*
* The information used comes from:
* RFC 951: Bootstrap Protocol
@@ -71,6 +71,7 @@ static guint ett_bootp = -1;
static guint ett_bootp_option = -1;
#define UDP_PORT_BOOTPS 67
+#define UDP_PORT_BOOTPC 68
enum field_type { none, ipv4, string, toggle, yes_no, special, opaque,
time_in_secs,
@@ -1368,4 +1369,5 @@ proto_reg_handoff_bootp(void)
bootp_handle = create_dissector_handle(dissect_bootp, proto_bootp);
dissector_add("udp.port", UDP_PORT_BOOTPS, bootp_handle);
+ dissector_add("udp.port", UDP_PORT_BOOTPC, bootp_handle);
}