mirror of https://github.com/secdev/scapy.git
test: correct L2TP regression test
Signed-off-by: Speidy <speidy@gmail.com>
This commit is contained in:
parent
f4a7922079
commit
8f9e49aa1e
|
@ -8039,11 +8039,11 @@ assert b[VRRP].chksum == 0xc6f4
|
|||
|
||||
= L2TP - build
|
||||
s = raw(IP()/UDP()/L2TP())
|
||||
s == b'E\x00\x00*\x00\x01\x00\x00@\x11|\xc0\x7f\x00\x00\x01\x7f\x00\x00\x01\x06\xa5\x06\xa5\x00\x16\xf4e\x00\x02\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
|
||||
s == b'E\x00\x00"\x00\x01\x00\x00@\x11|\xc8\x7f\x00\x00\x01\x7f\x00\x00\x01\x06\xa5\x06\xa5\x00\x0e\xf4\x83\x00\x02\x00\x00\x00\x00'
|
||||
|
||||
= L2TP - dissection
|
||||
p = IP(s)
|
||||
L2TP in p and p[L2TP].len == 14 and p.tunnel_id == 0 and p[UDP].chksum == 0xf465
|
||||
L2TP in p and len(p[L2TP]) == 6 and p.tunnel_id == 0 and p.session_id == 0 and p[UDP].chksum == 0xf483
|
||||
|
||||
|
||||
############
|
||||
|
|
Loading…
Reference in New Issue