summaryrefslogtreecommitdiff
path: root/epan/ax25_pids.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-08-03 01:58:12 +0000
committerGuy Harris <guy@alum.mit.edu>2012-08-03 01:58:12 +0000
commit307e13d9f2aefaa968f89d0bd065dbae5c992b64 (patch)
tree317ebe993472042cb8f010ad24276da1be0c5e98 /epan/ax25_pids.h
parentad3c303f16673438e94223dda25ec5be5e46408d (diff)
downloadwireshark-307e13d9f2aefaa968f89d0bd065dbae5c992b64.tar.gz
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
Diffstat (limited to 'epan/ax25_pids.h')
-rw-r--r--epan/ax25_pids.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/epan/ax25_pids.h b/epan/ax25_pids.h
new file mode 100644
index 0000000000..6fd6413803
--- /dev/null
+++ b/epan/ax25_pids.h
@@ -0,0 +1,46 @@
+/* ax25_pids.h
+ *
+ * Protocol IDs for Amateur Packet Radio protocol dissection
+ * Copyright 2005,2006,2007,2008,2009,2010,2012 R.W. Stearn <richard@rns-stearn.demon.co.uk>
+ *
+ * $Id$
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __AX25_PIDS_H__
+#define __AX25_PIDS_H__
+
+/* AX.25 Layer 3 Protocol ID's (pid) */
+#define AX25_P_ROSE 0x01 /* ISO 8208 / CCITT X.25 PLP */
+#define AX25_P_RFC1144C 0x06 /* Compressed TCP/IP packet. Van Jacobson RFC1144 */
+#define AX25_P_RFC1144 0x07 /* Uncompressed TCP/IP packet. Van Jacobson RFC1144 */
+#define AX25_P_SEGMENT 0x08 /* segmentation fragment */
+#define AX25_P_TEXNET 0xC3 /* TEXNET datagram */
+#define AX25_P_LCP 0xC4 /* Link Quality Protocol */
+#define AX25_P_ATALK 0xCA /* AppleTalk */
+#define AX25_P_ATALKARP 0xCB /* AppleTalk ARP */
+#define AX25_P_IP 0xCC /* ARPA Internet Protocol */
+#define AX25_P_ARP 0xCD /* ARPA Address Resolution Protocol */
+#define AX25_P_FLEXNET 0xCE /* FlexNet */
+#define AX25_P_NETROM 0xCF /* NET/ROM */
+#define AX25_P_NO_L3 0xF0 /* No layer 3 protocol */
+#define AX25_P_L3_ESC 0xFF /* Escape character. Next octet contains more layer 3 protocol info */
+
+#endif /* __AX25_PIDS_H__ */