Define some fcns & vars as static...
[metze/wireshark/wip.git] / epan / dissectors / packet-mpls.h
1 /* packet-mpls.h
2  * Declarations of exported routines from MPLS dissector
3  * Author: Carlos Pignataro <cpignata@cisco.com>
4  * Copyright 2005, cisco Systems, Inc.
5  *
6  * (c) Copyright 2006, _FF_ Francesco Fondelli <francesco.fondelli@gmail.com>  
7  *                     added MPLS OAM support, ITU-T Y.1711
8  *
9  * $Id$
10  *
11  * Wireshark - Network traffic analyzer
12  * By Gerald Combs <gerald@wireshark.org>
13  * Copyright 1998 Gerald Combs
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
28  */
29
30 #ifndef PACKET_MPLS_H
31 #define PACKET_MPLS_H
32
33 /* Special labels in MPLS */
34 enum {
35     LABEL_IP4_EXPLICIT_NULL = 0,
36     LABEL_ROUTER_ALERT,
37     LABEL_IP6_EXPLICIT_NULL,
38     LABEL_IMPLICIT_NULL,
39     LABEL_OAM_ALERT = 14,
40     LABEL_MAX_RESERVED = 15,
41     LABEL_INVALID = 0xffffffff
42 };
43
44 extern const value_string special_labels[];
45 extern void decode_mpls_label(tvbuff_t *tvb, int offset,
46                               guint32 *label, guint8 *exp,
47                               guint8 *bos, guint8 *ttl);
48
49 extern gboolean dissect_try_cw_first_nibble( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree );
50
51 #endif