scapy.layers.l2tp

L2TP (Layer 2 Tunneling Protocol) for VPNs.

[RFC 2661]

class scapy.layers.l2tp.L2TP

Bases: scapy.packet.Packet

aliastypes
fields_desc
L2TP fields

hdr

FlagsField (12 bits)

<Flag 0 ()>

version

BitEnumField (4 bits)

2

len

ShortField (Cond)

0

tunnel_id

ShortField

0

session_id

ShortField

0

ns

ShortField (Cond)

0

nr

ShortField (Cond)

0

offset

PadField (Cond)

0

payload_guess

Possible sublayers: PPP

post_build(pkt, pay)