diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-16 22:46:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-16 22:46:25 +0000 |
commit | 9aa7670a4eb9e7aac604180b00ca4fa751d68ea7 (patch) | |
tree | aa09ab7e91aa70df10e78c4ee02b0eabfda0c8db /packet-tcp.c | |
parent | 4179944c14ac8026099f6416fa80421a29c673b8 (diff) | |
download | wireshark-9aa7670a4eb9e7aac604180b00ca4fa751d68ea7.tar.gz |
Register an "ip.proto" dissector table for IPv4, and have dissectors for
protocols that run inside IPv4 register themselves with it using
"dissector_add()".
Make various dissectors static if they can be, and get rid of any header
files that no longer contain any information as a result of that change.
svn path=/trunk/; revision=1870
Diffstat (limited to 'packet-tcp.c')
-rw-r--r-- | packet-tcp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index 7c244e58c6..fb60e26099 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.69 2000/04/14 05:39:42 gram Exp $ + * $Id: packet-tcp.c,v 1.70 2000/04/16 22:46:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -51,6 +51,7 @@ #endif #include "plugins.h" +#include "packet-tcp.h" #include "packet-ip.h" #include "packet-giop.h" @@ -638,3 +639,9 @@ proto_register_tcp(void) /* subdissector code */ subdissector_table = register_dissector_table("tcp.port"); } + +void +proto_reg_handoff_tcp(void) +{ + dissector_add("ip.proto", IP_PROTO_TCP, dissect_tcp); +} |