Ethereal-dev: [Ethereal-dev] Decode some PXE-related dhcprequests to non-bootps ports (with at

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Tue, 28 May 2002 20:23:54 +0200
see subject/changelog
This time including the attachement

         Jörg
--
Joerg Mayer                                          <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.
Changelog: <jmayer@xxxxxxxxx>
	PXE clients may in some cases send BOOTP requests to destination
	ports different from 67 (i.e. 4011).

Index: ethereal/packet-bootp.c
===================================================================
RCS file: /cvsroot/ethereal/packet-bootp.c,v
retrieving revision 1.63
diff -u -r1.63 packet-bootp.c
--- packet-bootp.c	2002/01/24 09:20:47	1.63
+++ packet-bootp.c	2002/05/28 18:17:07
@@ -71,6 +71,7 @@
 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 @@
 
   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);
 }