Ethereal-dev: [ethereal-dev] Any reason not to add pi to packet-udp.c?

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

From: "Neulinger, Nathan R." <nneul@xxxxxxx>
Date: Fri, 15 Oct 1999 09:39:15 -0500
Is there any reason not to add the following to packet-udp.c?

@@ -222,6 +224,9 @@
   /* Skip over header */
   offset += 8;
 
+ pi.srcport = uh_sport;
+ pi.destport = uh_dport;
+
   /* XXX - we should do all of this through the table of ports. */
 #define PORT_IS(port)  (uh_sport == port || uh_dport == port)
  if (PORT_IS(UDP_PORT_BOOTPS))

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@xxxxxxx
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216