Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet.h packet-tcp.c packet-udp.c packet.c
guy 2000/04/04 00:37:41 CDT
Modified files:
. packet.h packet-tcp.c packet-udp.c
packet.c
Log:
Make a routine that takes a dissector table, a port number, and
pd/offset/fd/tree arguments, looks up the port number in the dissector
table, and:
if it finds it, call the corresponding dissector routine with
the pd/offset/fd/tree arguments, and return TRUE;
if it doesn't find it, return FALSE.
Use that in the TCP and UDP dissectors.
Don't add arbitrary UDP ports for which a dissector is found in the
table as ports that should be dissected as TFTP; this should only be
done if we find a packet going from port XXX to the official TFTP port.
Don't register TFTP in UDP's dissector table, as it has to be handled
specially (i.e., we have to add the source port as a TFTP port, although
we really should register the source port *and* IP address); eventually,
we should move that registration to the TFTP dissector itself, at which
point we can register TFTP normally.
Revision Changes Path
1.178 +6 -1 ethereal/packet.h
1.63 +5 -15 ethereal/packet-tcp.c
1.55 +5 -23 ethereal/packet-udp.c
1.72 +18 -1 ethereal/packet.c