![Balint Reczey](/assets/img/avatar_default.png)
Introduction of decoding of MPLS payloads as CESoPSN PW (RFC5086) and SAToP PW (RFC4553). Not supported yet: - CESoPSN Basic NxDS0 mode. - Decoding of <Optional> RTP Headers (RFC3550) - Decoding of PW payload svn path=/trunk/; revision=28181
61 lines
2 KiB
C
61 lines
2 KiB
C
/* packet-pw-common.h
|
|
* Interface of pw-common module
|
|
* Copyright 2009, Artem Tamazov <artem.tamazov@tellabs.com>
|
|
*
|
|
* $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_PW_COMMON_H
|
|
#define PACKET_PW_COMMON_H
|
|
|
|
#include <glib.h>
|
|
#include <epan/packet.h>
|
|
|
|
#define PWC_SIZEOF_CW 4
|
|
|
|
extern const value_string pwc_vals_cw_l_bit[];
|
|
extern const value_string pwc_vals_cw_r_bit[];
|
|
extern const value_string pwc_vals_cw_frag[];
|
|
|
|
typedef enum {
|
|
PWC_CW_BAD_BITS03 = 1 << 0
|
|
,PWC_CW_BAD_PAYLEN_LT_0 = 1 << 1
|
|
,PWC_CW_BAD_PAYLEN_GT_PACKET = 1 << 2
|
|
,PWC_CW_BAD_LEN_MUST_BE_0 = 1 << 3
|
|
,PWC_CW_BAD_FRAG = 1 << 4
|
|
,PWC_CW_BAD_RSV = 1 << 5
|
|
,PWC_ANYOF_CW_BAD = PWC_CW_BAD_BITS03
|
|
+ PWC_CW_BAD_PAYLEN_LT_0
|
|
+ PWC_CW_BAD_PAYLEN_GT_PACKET
|
|
+ PWC_CW_BAD_LEN_MUST_BE_0
|
|
+ PWC_CW_BAD_FRAG
|
|
+ PWC_CW_BAD_RSV
|
|
,PWC_CW_SUSPECT_LM = 1 << 6
|
|
,PWC_ANYOF_CW_SUSPECT = PWC_CW_SUSPECT_LM
|
|
,PWC_PAY_SIZE_BAD = 1 << 7
|
|
} pwc_packet_properties_t;
|
|
|
|
extern void pwc_item_append_cw(proto_item* item, const guint32 cw, const gboolean append_text);
|
|
extern void pwc_item_append_text_n_items(proto_item* item, const int n, const char * const item_text);
|
|
extern int pwc_value_listed_in_vals(const guint32 val, const value_string * vals);
|
|
|
|
#endif
|