From 307e13d9f2aefaa968f89d0bd065dbae5c992b64 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 3 Aug 2012 01:58:12 +0000 Subject: Move the list of AX.25 protocol IDs to epan/ax25_pids.h. Use it in packet-ax25.c and packet-arp.c. Add an "ax25.pid" dissector table for those protocol IDs, use it in the AX.25 dissector, and have dissectors register in that table with their protocol IDs. Get rid of some unneeded includes. Clean up some "AX25"s in user-visible strings - say "AX.25" instead. Clean up some indentation. svn path=/trunk/; revision=44235 --- epan/dissectors/packet-x25.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epan/dissectors/packet-x25.c') diff --git a/epan/dissectors/packet-x25.c b/epan/dissectors/packet-x25.c index e239d225eb..1bc94dc610 100644 --- a/epan/dissectors/packet-x25.c +++ b/epan/dissectors/packet-x25.c @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -2770,4 +2771,5 @@ proto_reg_handoff_x25(void) x25_handle = find_dissector("x.25"); dissector_add_uint("llc.dsap", SAP_X25, x25_handle); dissector_add_uint("lapd.sapi", LAPD_SAPI_X25, x25_handle); + dissector_add_uint("ax25.pid", AX25_P_ROSE, x25_handle); } -- cgit v1.2.3