Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-udp.c packet-tcp.c packet-sctp.c
guy 2002/06/08 16:54:53 CDT
Modified files:
. packet-udp.c packet-tcp.c packet-sctp.c
Log:
When looking for dissectors for the source and destination port numbers
in TCP, UDP, and SCTP, try the lower port number first, and then the
higher port number; this means that, for packets where a dissector is
registered for *both* port numbers:
1) we pick the same dissector for traffic going in both directions;
2) we prefer the port number that's more likely to be the right
one (as that prefers well-known ports to reserved ports);
although there is, of course, no guarantee that any such strategy will
always pick the right port number.
Ignore port numbers of 0, as some dissectors use a port number of 0 to
disable the port, and as RFC 768 says that the source port in UDP
datagrams is optional and is 0 if not used.
Revision Changes Path
1.103 +30 -4 ethereal/packet-udp.c
1.144 +29 -4 ethereal/packet-tcp.c
1.38 +44 -17 ethereal/packet-sctp.c