2 * Declarations of exported routines from MPLS dissector
3 * Author: Carlos Pignataro <cpignata@cisco.com>
4 * Copyright 2005, cisco Systems, Inc.
6 * (c) Copyright 2006, _FF_ Francesco Fondelli <francesco.fondelli@gmail.com>
7 * added MPLS OAM support, ITU-T Y.1711
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 1998 Gerald Combs
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.
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.
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.
33 /* Special labels in MPLS */
35 LABEL_IP4_EXPLICIT_NULL = 0,
37 LABEL_IP6_EXPLICIT_NULL,
40 LABEL_MAX_RESERVED = 15,
41 LABEL_INVALID = 0xffffffff
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);
49 extern gboolean dissect_try_cw_first_nibble( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree );