forked from osmocom/wireshark
![Anders Broman](/assets/img/avatar_default.png)
Part of patch: 2. BFD extension has been added as per RFC 6428, to decode the BFD packet with ACH encapsulation(without IP/UDP header encapsulation). The channel type in ACH header identifies the BFD payload as BFD CC or CV packet. Also decoding for MPLS-TP source MEP-ID TLV in BFD CV packet has been added. applied with a change to add packet-bfd.h https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6610#add_comment svn path=/trunk/; revision=40029
56 lines
2 KiB
C
56 lines
2 KiB
C
/* packet-mpls.h
|
|
* Declarations of exported routines from MPLS dissector
|
|
* Author: Carlos Pignataro <cpignata@cisco.com>
|
|
* Copyright 2005, cisco Systems, Inc.
|
|
*
|
|
* (c) Copyright 2006, _FF_ Francesco Fondelli <francesco.fondelli@gmail.com>
|
|
* added MPLS OAM support, ITU-T Y.1711
|
|
* (c) Copyright 2011, Shobhank Sharma <ssharma5@ncsu.edu>
|
|
* added MPLS Generic Associated Channel as per RFC 5586
|
|
*
|
|
* $Id$
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* 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_MPLS_H
|
|
#define PACKET_MPLS_H
|
|
|
|
/* Special labels in MPLS */
|
|
enum {
|
|
LABEL_IP4_EXPLICIT_NULL = 0,
|
|
LABEL_ROUTER_ALERT,
|
|
LABEL_IP6_EXPLICIT_NULL,
|
|
LABEL_IMPLICIT_NULL,
|
|
LABEL_OAM_ALERT = 14,
|
|
LABEL_MAX_RESERVED = 15,
|
|
LABEL_GACH = 13,
|
|
LABEL_INVALID = 0xffffffff
|
|
};
|
|
|
|
extern const value_string special_labels[];
|
|
extern void decode_mpls_label(tvbuff_t *tvb, int offset,
|
|
guint32 *label, guint8 *exp,
|
|
guint8 *bos, guint8 *ttl);
|
|
|
|
extern gboolean dissect_try_cw_first_nibble( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree );
|
|
void dissect_mpls_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
|
|
|
#endif
|