Move dissectors to epan/dissectors directory.
[obnox/wireshark/wip.git] / epan / dissectors / packet-diffserv-mpls-common.h
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)
4  *
5  * $Id$
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  *
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.
15  *
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.
20  *
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.
24  */
25
26 #ifndef __PACKET_DSMPLS_H__
27 #define __PACKET_DSMPLS_H__
28
29 #define PHBID_DSCP_MASK  0xFC00
30 #define PHBID_CODE_MASK  0xFFF0
31 #define PHBID_BIT14_MASK 2
32 #define PHBID_BIT15_MASK 1
33
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"
42
43
44 extern const value_string phbid_bit14_vals[];
45
46 extern const value_string phbid_bit15_vals[];
47
48 void
49 dissect_diffserv_mpls_common(tvbuff_t *tvb, proto_tree *tree, int type,
50                              int offset, int **hfindexes, gint **etts);
51
52 #endif