diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-28 20:08:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-28 20:08:09 +0000 |
commit | 49fe4e742caefd4372bde56d1c8905e77cca0482 (patch) | |
tree | 922c922d0b5158437061378222f28f57394572c8 /packet-bootp.c | |
parent | 34a484d0d8078b35064623018a0b774f3725257e (diff) | |
download | wireshark-49fe4e742caefd4372bde56d1c8905e77cca0482.tar.gz wireshark-49fe4e742caefd4372bde56d1c8905e77cca0482.tar.bz2 wireshark-49fe4e742caefd4372bde56d1c8905e77cca0482.zip |
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.c | 4 |
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); } |