aboutsummaryrefslogtreecommitdiffstats
path: root/packet-diffserv-mpls-common.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-10-10 21:16:24 +0000
committerGuy Harris <guy@alum.mit.edu>2003-10-10 21:16:24 +0000
commit04cd6b60742277df0002b89386696f2ebaa04df2 (patch)
treea5b45959f7d66c757590058400f70895ebd8183b /packet-diffserv-mpls-common.h
parenta3d8b3481f86d4997133352c44e17924f220d02f (diff)
From Akira Endoh: Diffserv MPLS signaling protocol support.
svn path=/trunk/; revision=8671
Diffstat (limited to 'packet-diffserv-mpls-common.h')
-rw-r--r--packet-diffserv-mpls-common.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/packet-diffserv-mpls-common.h b/packet-diffserv-mpls-common.h
new file mode 100644
index 0000000000..1064b4ee78
--- /dev/null
+++ b/packet-diffserv-mpls-common.h
@@ -0,0 +1,60 @@
+/* packet-diffserv-mpls-common.h
+ * Routines for the common part of Diffserv MPLS signaling protocols
+ * Author: Endoh Akira (endoh@netmarks.co.jp)
+ *
+ * $Id: packet-diffserv-mpls-common.h,v 1.1 2003/10/10 21:16:24 guy Exp $
+ *
+ * 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 __PACKET_DSMPLS_H__
+#define __PACKET_DSMPLS_H__
+
+#define PHBID_DSCP_MASK 0xFC00
+#define PHBID_CODE_MASK 0xFFF0
+#define PHBID_BIT14_MASK 2
+#define PHBID_BIT15_MASK 1
+
+#define MAPNB_DESCRIPTION "Number of MAP entries"
+#define MAP_DESCRIPTION "MAP entry"
+#define EXP_DESCRIPTION "EXP bit code"
+#define PHBID_DESCRIPTION "PHBID"
+#define PHBID_DSCP_DESCRIPTION "DSCP"
+#define PHBID_CODE_DESCRIPTION "PHB id code"
+#define PHBID_BIT14_DESCRIPTION "Bit 14"
+#define PHBID_BIT15_DESCRIPTION "Bit 15"
+
+
+static const value_string phbid_bit14_vals[] = {
+ {0, "Single PHB"},
+ {1, "Set of PHBs"},
+ {0, NULL}
+};
+
+static const value_string phbid_bit15_vals[] = {
+ {0, "PHBs defined by standards action"},
+ {1, "PHBs not defined by standards action"},
+ {0, NULL}
+};
+
+void
+dissect_diffserv_mpls_common(tvbuff_t *tvb, proto_tree *tree, int type,
+ int offset, int **hfindexes, gint **etts);
+
+#endif