From 49fe4e742caefd4372bde56d1c8905e77cca0482 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 28 May 2002 20:08:09 +0000 Subject: 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 --- packet-bootp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packet-bootp.c') 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 * - * $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); } -- cgit v1.2.3