Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-l2tp.h
1 /* packet-l2tp.h
2  * Routines for Layer Two Tunnelling Protocol (L2TP) packet disassembly
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 #ifndef __PACKET_L2TP_H__
11 #define __PACKET_L2TP_H__
12 
13 typedef struct _l2tp_cntrl_data {
14  guint32 ccid;
15  int msg_type;
17 
18 /* L2TPv3 Pseudowire Types
19  * https://www.iana.org/assignments/l2tp-parameters/l2tp-parameters.xhtml
20  */
21 /* 0 is unassigned, use for Decode As of sessions where we do not have a
22  * PW Type AVP. (Perhaps if no control packets are captured.) */
23 #define L2TPv3_PW_DEFAULT 0x0000
24 #define L2TPv3_PW_FR 0x0001
25 #define L2TPv3_PW_AAL5 0x0002
26 #define L2TPv3_PW_ATM_PORT 0x0003
27 #define L2TPv3_PW_ETH_VLAN 0x0004
28 #define L2TPv3_PW_ETH 0x0005
29 #define L2TPv3_PW_CHDLC 0x0006
30 #define L2TPv3_PW_PPP 0x0007 /* Expired draft, unassigned */
31 #define L2TPv3_PW_ATM_VCC 0x0009
32 #define L2TPv3_PW_ATM_VPC 0x000A
33 #define L2TPv3_PW_IP 0x000B /* Expired draft, unassigned */
34 #define L2TPv3_PW_DOCSIS_DMPT 0x000C /* MPEG2-TS */
35 #define L2TPv3_PW_DOCSIS_PSP 0x000D
36 #define L2TPv3_PW_E1 0x0011
37 #define L2TPv3_PW_T1 0x0012
38 #define L2TPv3_PW_E3 0x0013
39 #define L2TPv3_PW_T3 0x0014
40 #define L2TPv3_PW_CESOPSN 0x0015
41 #define L2TPv3_PW_CESOPSN_CAS 0x0017
42 
43 #if 0
44 /* Other dissectors that do not have Pseudowire Types assigned.
45  * Were any of the unassigned numbers used for these in the past,
46  * as with PPP and IP?
47  */
48 #define L2TPv3_PW_MPLS
49 #define L2TPv3_PW_LAPD
50 #define L2TPv3_PW_ERICSSON
51 #endif
52 
53 #endif /* __PACKET_L2TP_H__ */
Definition: packet-l2tp.h:13