From 04cd6b60742277df0002b89386696f2ebaa04df2 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 10 Oct 2003 21:16:24 +0000 Subject: From Akira Endoh: Diffserv MPLS signaling protocol support. svn path=/trunk/; revision=8671 --- packet-diffserv-mpls-common.h | 60 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 packet-diffserv-mpls-common.h (limited to 'packet-diffserv-mpls-common.h') 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 + * 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 -- cgit v1.2.3