aboutsummaryrefslogtreecommitdiffstats
path: root/packet-udp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-16 22:46:25 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-16 22:46:25 +0000
commit9aa7670a4eb9e7aac604180b00ca4fa751d68ea7 (patch)
treeaa09ab7e91aa70df10e78c4ee02b0eabfda0c8db /packet-udp.c
parent4179944c14ac8026099f6416fa80421a29c673b8 (diff)
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-udp.c')
-rw-r--r--packet-udp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/packet-udp.c b/packet-udp.c
index 17e2fe937f..2e05e4cb23 100644
--- a/packet-udp.c
+++ b/packet-udp.c
@@ -1,7 +1,7 @@
/* packet-udp.c
* Routines for UDP packet disassembly
*
- * $Id: packet-udp.c,v 1.64 2000/04/14 06:42:50 guy Exp $
+ * $Id: packet-udp.c,v 1.65 2000/04/16 22:46:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -45,11 +45,11 @@
#include "resolv.h"
#include "plugins.h"
+#include "packet-udp.h"
+#include "packet-ip.h"
#include "packet-ncp.h"
-#include "packet-rip.h"
#include "packet-rpc.h"
-#include "packet-rx.h"
#include "packet-tftp.h"
#include "packet-vines.h"
@@ -237,3 +237,9 @@ proto_register_udp(void)
/* subdissector code */
udp_dissector_table = register_dissector_table("udp.port");
}
+
+void
+proto_reg_handoff_udp(void)
+{
+ dissector_add("ip.proto", IP_PROTO_UDP, dissect_udp);
+}