1 /* packet-diffserv-mpls-common.h
2 * Routines for the common part of Diffserv MPLS signaling protocols
3 * Author: Endoh Akira (endoh@netmarks.co.jp)
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef __PACKET_DSMPLS_H__
27 #define __PACKET_DSMPLS_H__
29 #define PHBID_DSCP_MASK 0xFC00
30 #define PHBID_CODE_MASK 0xFFF0
31 #define PHBID_BIT14_MASK 2
32 #define PHBID_BIT15_MASK 1
34 #define MAPNB_DESCRIPTION "Number of MAP entries"
35 #define MAP_DESCRIPTION "MAP entry"
36 #define EXP_DESCRIPTION "EXP bit code"
37 #define PHBID_DESCRIPTION "PHBID"
38 #define PHBID_DSCP_DESCRIPTION "DSCP"
39 #define PHBID_CODE_DESCRIPTION "PHB id code"
40 #define PHBID_BIT14_DESCRIPTION "Bit 14"
41 #define PHBID_BIT15_DESCRIPTION "Bit 15"
44 extern const value_string phbid_bit14_vals[];
46 extern const value_string phbid_bit15_vals[];
49 dissect_diffserv_mpls_common(tvbuff_t *tvb, proto_tree *tree, int type,
50 int offset, int **hfindexes, gint **etts);