scapy.layers.l2tp
L2TP (Layer 2 Tunneling Protocol) for VPNs.
[RFC 2661]
- class scapy.layers.l2tp.L2TP(_pkt, /, *, hdr=<Flag 0 ()>, version=2, len=None, tunnel_id=0, session_id=0, ns=0, nr=0, offset=0)[源代码]
基类:
Packet
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HDR |VERSION| LEN | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TUNNEL ID | SESSION ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | NS | NR | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OFFSET | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. L2TP
L2TP fields hdr
<Flag 0 ()>
version
2
len
ShortField
(Cond)None
tunnel_id
0
session_id
0
ns
ShortField
(Cond)0
nr
ShortField
(Cond)0
offset
PadField
(Cond)0