2 * Routines for Layer Two Tunnelling Protocol (L2TP) packet disassembly
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __PACKET_L2TP_H__
11 #define __PACKET_L2TP_H__
13 typedef struct _l2tp_cntrl_data
{
18 /* L2TPv3 Pseudowire Types
19 * https://www.iana.org/assignments/l2tp-parameters/l2tp-parameters.xhtml
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
44 /* Other dissectors that do not have Pseudowire Types assigned.
45 * Were any of the unassigned numbers used for these in the past,
48 #define L2TPv3_PW_MPLS
49 #define L2TPv3_PW_LAPD
50 #define L2TPv3_PW_ERICSSON
53 #endif /* __PACKET_L2TP_H__ */