scapy.layers.l2tp

用于VPN的L2TP(第2层隧道协议).

[RFC 2661]

class scapy.layers.l2tp.L2TP

Bases: scapy.packet.Packet

aliastypes
fields_desc
L2TP字段

hdr

FlagsField (12位)

<Flag 0 ()>

version

BitEnumField (4位)

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

可能的子层: PPP

post_build(pkt, pay)