From 8f9e49aa1e3eeef2f416ecebb458efb990065613 Mon Sep 17 00:00:00 2001 From: Speidy Date: Tue, 16 Jan 2018 02:10:57 +0200 Subject: [PATCH] test: correct L2TP regression test Signed-off-by: Speidy --- test/regression.uts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/regression.uts b/test/regression.uts index 8f095e9ab..51d37ab0e 100644 --- a/test/regression.uts +++ b/test/regression.uts @@ -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 ############