test: correct L2TP regression test

Signed-off-by: Speidy <speidy@gmail.com>
This commit is contained in:
Speidy 2018-01-16 02:10:57 +02:00
parent f4a7922079
commit 8f9e49aa1e
No known key found for this signature in database
GPG Key ID: 8AD32D04337B1F18
1 changed files with 2 additions and 2 deletions

View File

@ -8039,11 +8039,11 @@ assert b[VRRP].chksum == 0xc6f4
= L2TP - build = L2TP - build
s = raw(IP()/UDP()/L2TP()) 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 = L2TP - dissection
p = IP(s) 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
############ ############