guy 2000/04/03 04:24:24 CDT
Modified files:
. packet-tcp.c packet-udp.c packet.c
packet.h proto.c proto.h
Log:
Jeff Foster's patch to support attaching a hash table to a protocol
field, to allow dissectors to register their dissection routine in a
particular field's hash table with a particular "port" value, and to
make the TCP and UDP dissectors support that for their "port" field and
to look up ports in that hash table.
This replaces the hash table that the UDP dissector was using.
There's still more work needed to make this useful - right now, the hash
tables are attached to the protocol field in the register routines for
the TCP and UDP protocols, which means that the register routines for
protocols that run atop TCP and UDP can't use this unless their register
routines happen to be called after those for TCP and/or UDP, and several
other protocols need to attach hash tables to fields, and there's no
single global field for Ethernet types so we can't even attach a hash
table to such a field to allow protocols to register themselves with a
particular Ethertype - but it's a start.
Revision Changes Path
1.61 +69 -80 ethereal/packet-tcp.c
1.53 +19 -94 ethereal/packet-udp.c
1.70 +65 -1 ethereal/packet.c
1.176 +19 -3 ethereal/packet.h
1.57 +20 -7 ethereal/proto.c
1.26 +14 -1 ethereal/proto.h