diff options
author | mcr <mcr> | 2007-11-24 18:10:54 +0000 |
---|---|---|
committer | mcr <mcr> | 2007-11-24 18:10:54 +0000 |
commit | c51a2d7a9a66ea0398e29473ed8019ea37423c7b (patch) | |
tree | e1d8243160a635c347cfb1940fffdc007db12d57 | |
parent | d22c00270c6dd931a08a8d2914fbb900f77f980a (diff) | |
download | tcpdump-c51a2d7a9a66ea0398e29473ed8019ea37423c7b.tar.gz |
updated test cases for fixed msgid/cookie printing for IKEv2.
added test case for encrypted IKEv2 payload.
-rw-r--r-- | tests/.cvsignore | 4 | ||||
-rw-r--r-- | tests/TESTLIST | 1 | ||||
-rwxr-xr-x | tests/TESTrun.sh | 2 | ||||
-rw-r--r-- | tests/ikev2four.out | 42 | ||||
-rw-r--r-- | tests/ikev2fourv.out | 42 | ||||
-rw-r--r-- | tests/ikev2fourv4.out | 42 | ||||
-rw-r--r-- | tests/ikev2pI2-secrets.txt | 2 | ||||
-rw-r--r-- | tests/ikev2pI2.out | 40 | ||||
-rw-r--r-- | tests/ikev2pI2.puu | 19 | ||||
-rw-r--r-- | tests/isakmp3.out | 2 |
10 files changed, 132 insertions, 64 deletions
diff --git a/tests/.cvsignore b/tests/.cvsignore index f097c8a9..b5dab6eb 100644 --- a/tests/.cvsignore +++ b/tests/.cvsignore @@ -9,3 +9,7 @@ isakmp-identification-segfault.pcap isakmp-pointer-loop.pcap run1.pcap run2.pcap +.failed +.gdbinit +.passed + diff --git a/tests/TESTLIST b/tests/TESTLIST index f322978f..86fb5fb9 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -33,4 +33,5 @@ ospf-gmpls ospf-gmpls.pcap ospf-gmpls.out -t -v ikev2four ikev2four.pcap ikev2four.out -t -v ikev2fourv ikev2four.pcap ikev2fourv.out -t -v -v -v ikev2fourv4 ikev2four.pcap ikev2fourv4.out -t -v -v -v -v +ikev2pI2 ikev2pI2.pcap ikev2pI2.out -t -E "file ikev2pI2-secrets.txt" -v -v -v -v diff --git a/tests/TESTrun.sh b/tests/TESTrun.sh index d4d69552..656974dd 100755 --- a/tests/TESTrun.sh +++ b/tests/TESTrun.sh @@ -13,6 +13,7 @@ do if sh ./$i >DIFF/$i.result then echo $i: passed. + rm -f DIFF/$i.result passed=$(($passed + 1)) else echo $i: failed. @@ -34,6 +35,7 @@ do if ./TESTonce $name $input $output "$options" then echo $name: passed. + rm -f DIFF/$output.diff passed=$(($passed + 1)) echo $passed >.passed else diff --git a/tests/ikev2four.out b/tests/ikev2four.out index 35be9f74..a3528357 100644 --- a/tests/ikev2four.out +++ b/tests/ikev2four.out @@ -1,5 +1,5 @@ IP (tos 0x0, ttl 64, id 19908, offset 0, flags [none], proto UDP (17), length 404) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : parent_sa ikev2_init[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000000: parent_sa ikev2_init[I]: (sa: len=116 (p: #1 protoid=isakmp transform=12 len=116 (t: #1 type=encr id=aes (type=keylen value=0080)) @@ -19,10 +19,10 @@ IP (tos 0x0, ttl 64, id 19908, offset 0, flags [none], proto UDP (17), length 40 (n: prot_id=#0 type=16388(nat_detection_source_ip)) (n: prot_id=#0 type=16389(nat_detection_destination_ip)) IP (tos 0x0, ttl 64, id 19909, offset 0, flags [none], proto UDP (17), length 88) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : parent_sa ikev2_init[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000000: parent_sa ikev2_init[]: (n: prot_id=#0 type=16390(cookie) data=(00000001c2221e50c16e123f2b0c71aefcf0cb3b798782c6)) IP (tos 0x0, ttl 64, id 19910, offset 0, flags [none], proto UDP (17), length 436) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : parent_sa ikev2_init[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000000: parent_sa ikev2_init[I]: (n: prot_id=#0 type=16390(cookie) data=(00000001c2221e50c16e...ba041b5de59955900d818ac54e18b236739d9e8b)) (sa: len=116 (p: #1 protoid=isakmp transform=12 len=116 @@ -43,7 +43,7 @@ IP (tos 0x0, ttl 64, id 19910, offset 0, flags [none], proto UDP (17), length 43 (n: prot_id=#0 type=16388(nat_detection_source_ip)) (n: prot_id=#0 type=16389(nat_detection_destination_ip)) IP (tos 0x0, ttl 64, id 19911, offset 0, flags [none], proto UDP (17), length 332) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : parent_sa ikev2_init[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000000: parent_sa ikev2_init[]: (sa: len=44 (p: #1 protoid=isakmp transform=4 len=44 (t: #1 type=encr id=aes (type=keylen value=0080)) @@ -55,53 +55,53 @@ IP (tos 0x0, ttl 64, id 19911, offset 0, flags [none], proto UDP (17), length 33 (n: prot_id=#0 type=16388(nat_detection_source_ip)) (n: prot_id=#0 type=16389(nat_detection_destination_ip)) IP (tos 0x0, ttl 64, id 19912, offset 0, flags [none], proto UDP (17), length 264) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa ikev2_auth[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000001: child_sa ikev2_auth[I]: (v2e: len=204) IP (tos 0x0, ttl 64, id 19913, offset 0, flags [none], proto UDP (17), length 184) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa ikev2_auth[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000001: child_sa ikev2_auth[]: (v2e: len=124) IP (tos 0x0, ttl 64, id 19914, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000002: child_sa child_sa[I]: (v2e: len=220) IP (tos 0x0, ttl 64, id 19915, offset 0, flags [none], proto UDP (17), length 248) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000003: child_sa child_sa[I]: (v2e: len=188) IP (tos 0x0, ttl 64, id 19916, offset 0, flags [none], proto UDP (17), length 104) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000002: child_sa child_sa[]: (v2e: len=44) IP (tos 0x0, ttl 64, id 19917, offset 0, flags [none], proto UDP (17), length 104) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000003: child_sa child_sa[]: (v2e: len=44) IP (tos 0x0, ttl 64, id 19918, offset 0, flags [none], proto UDP (17), length 312) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000004: child_sa child_sa[I]: (v2e: len=252) IP (tos 0x0, ttl 64, id 19919, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000005: child_sa child_sa[I]: (v2e: len=220) IP (tos 0x0, ttl 64, id 19920, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000004: child_sa child_sa[]: (v2e: len=172) IP (tos 0x0, ttl 64, id 19921, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000005: child_sa child_sa[]: (v2e: len=172) IP (tos 0x0, ttl 64, id 19922, offset 0, flags [none], proto UDP (17), length 312) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000006: child_sa child_sa[I]: (v2e: len=252) IP (tos 0x0, ttl 64, id 19923, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000007: child_sa child_sa[I]: (v2e: len=220) IP (tos 0x0, ttl 64, id 19924, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000006: child_sa child_sa[]: (v2e: len=172) IP (tos 0x0, ttl 64, id 19925, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000007: child_sa child_sa[]: (v2e: len=172) IP (tos 0x0, ttl 64, id 19926, offset 0, flags [none], proto UDP (17), length 392) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000008: child_sa child_sa[I]: (v2e: len=332) IP (tos 0x0, ttl 64, id 19927, offset 0, flags [none], proto UDP (17), length 344) - 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid : child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: isakmp 2.0 msgid 00000008: child_sa child_sa[]: (v2e: len=284) IP (tos 0x0, ttl 64, id 19928, offset 0, flags [none], proto UDP (17), length 120) - 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid : parent_sa inf2[I]: + 192.168.1.2.500 > 192.168.1.1.500: isakmp 2.0 msgid 00000000: parent_sa inf2[I]: (v2e: len=60) diff --git a/tests/ikev2fourv.out b/tests/ikev2fourv.out index ce3a9679..e736da34 100644 --- a/tests/ikev2fourv.out +++ b/tests/ikev2fourv.out @@ -1,5 +1,5 @@ IP (tos 0x0, ttl 64, id 19908, offset 0, flags [none], proto UDP (17), length 404) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7aee!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7aee!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->0000000000000000: parent_sa ikev2_init[I]: (sa: len=116 (p: #1 protoid=isakmp transform=12 len=116 (t: #1 type=encr id=aes (type=keylen value=0080)) @@ -19,10 +19,10 @@ IP (tos 0x0, ttl 64, id 19908, offset 0, flags [none], proto UDP (17), length 40 (n: prot_id=#0 type=16388(nat_detection_source_ip)) (n: prot_id=#0 type=16389(nat_detection_destination_ip)) IP (tos 0x0, ttl 64, id 19909, offset 0, flags [none], proto UDP (17), length 88) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum a706!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum a706!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->0000000000000000: parent_sa ikev2_init[]: (n: prot_id=#0 type=16390(cookie) data=(00000001c2221e50c16e123f2b0c71aefcf0cb3b798782c6)) IP (tos 0x0, ttl 64, id 19910, offset 0, flags [none], proto UDP (17), length 436) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7d6f!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7d6f!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->0000000000000000: parent_sa ikev2_init[I]: (n: prot_id=#0 type=16390(cookie) data=(00000001c2221e50c16e...ba041b5de59955900d818ac54e18b236739d9e8b)) (sa: len=116 (p: #1 protoid=isakmp transform=12 len=116 @@ -43,7 +43,7 @@ IP (tos 0x0, ttl 64, id 19910, offset 0, flags [none], proto UDP (17), length 43 (n: prot_id=#0 type=16388(nat_detection_source_ip)) (n: prot_id=#0 type=16389(nat_detection_destination_ip)) IP (tos 0x0, ttl 64, id 19911, offset 0, flags [none], proto UDP (17), length 332) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 337f!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 337f!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->71be8358efae7663: parent_sa ikev2_init[]: (sa: len=44 (p: #1 protoid=isakmp transform=4 len=44 (t: #1 type=encr id=aes (type=keylen value=0080)) @@ -55,53 +55,53 @@ IP (tos 0x0, ttl 64, id 19911, offset 0, flags [none], proto UDP (17), length 33 (n: prot_id=#0 type=16388(nat_detection_source_ip)) (n: prot_id=#0 type=16389(nat_detection_destination_ip)) IP (tos 0x0, ttl 64, id 19912, offset 0, flags [none], proto UDP (17), length 264) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum fdaa!] isakmp 2.0 msgid cookie ->: child_sa ikev2_auth[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum fdaa!] isakmp 2.0 msgid 00000001 cookie a88875a8198992a6->71be8358efae7663: child_sa ikev2_auth[I]: (v2e: len=204 f606135ad373e70836fda91b63ca4c608e1ad58218488c2647ff1e8a912958aa77efbc3068a2ae6ab7c3d0cb1e6fb864df99c62f2cc045708084708154a393c2f4cbefad1f6848525d49db563e13345a4e6e2fd066c04e2ce291f4714baec6bf328356c446247cab835bda3e8e1aae5967248f01eb3a1c02a541b4da09b3276b400d50a067542a678468c5f41e54017c00964f1003f8c88896a6f12215a5f1a060713cc83802cae3abee18417c0c35dc6f58a01adb96ed1c009c68e3069ae70f4b10afb7736c111ade4d826e) IP (tos 0x0, ttl 64, id 19913, offset 0, flags [none], proto UDP (17), length 184) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum bf00!] isakmp 2.0 msgid cookie ->: child_sa ikev2_auth[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum bf00!] isakmp 2.0 msgid 00000001 cookie a88875a8198992a6->71be8358efae7663: child_sa ikev2_auth[]: (v2e: len=124 6afe95bc5147b0ad7e4ccb9141c160a44f7c6eddc6b29d414ad5e2b882544fdc6c3ee6983ae1408b5764b1649343876454d1bf4d515aaf03c15eafe71be6b4cf51ab60630c45bcf0e2a2db8eee70095a4e010fdb342adb6d03dae5def9d4907cdfc8ccd6f3da9b7497c58e84a952d983bafb941ab1de1b0bb9ffad3b) IP (tos 0x0, ttl 64, id 19914, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum c32d!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum c32d!] isakmp 2.0 msgid 00000002 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=220 53cc6c0b41f14e4fc057c7f6a3524adde8521f26f67c058430a902db1a52ed16d322630d2eb515372dc12d97dc7c20552607e2ed193d9b33939e10aa2fc37b6199f0a629c6b58135f5b6f9e07906cd30dc3cae7d55fe08d95d3e660a623731c396a325adbff11c490f9fd102224391a65fb7bbe862945b64cf1fb833b9ce68c83df0b9d2ce7bd54f650864af9445e547cdfe5caa393344ae5274933b7efcf616821ea7daa9c5a6e8275ad6c688700cb7f4bcd6fb8025e93bb6dd5f581faebcbecb798c87617a4ec1b06ba290ac5fc1d6e4c2725c1f9f0e10b144fbbe) IP (tos 0x0, ttl 64, id 19915, offset 0, flags [none], proto UDP (17), length 248) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum e6d7!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum e6d7!] isakmp 2.0 msgid 00000003 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=188 9603e03f280964782717da15a502f0a9e9f17dbf4487c6923cf00b7040d539bc947c705790e4e99b834a7ae2a8d79f5620e11615e0a762889aab821e0d03132dfb8cc6b3718582411bcd98c242a8b10a66274dae1ce055fb30a4d3e64c969be6e08b626958f4446c6e4a0c8d7a24522959c6152e63a575c06930c2097539bfbdff08c70533428cf6b452e0b8b0259c2292925d2ed62e8956bc7e3a911a61509be1ac8f7b7cd4636176e524f4d0f17573f2aeddce2251fd6d5d9cd54d) IP (tos 0x0, ttl 64, id 19916, offset 0, flags [none], proto UDP (17), length 104) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum f2c0!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum f2c0!] isakmp 2.0 msgid 00000002 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=44 5bd2d26cb43b6cec30dec13fa387359797baf7b41e783422bc4dabf5d03ab2420d277d3b2f28d1f003da98d1) IP (tos 0x0, ttl 64, id 19917, offset 0, flags [none], proto UDP (17), length 104) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum e03a!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum e03a!] isakmp 2.0 msgid 00000003 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=44 38f60ab69110967961ae04af4e47a770260d61e29d18fb13ce093a47970068dacb342f7999cc3d0d59f77a94) IP (tos 0x0, ttl 64, id 19918, offset 0, flags [none], proto UDP (17), length 312) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 661c!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 661c!] isakmp 2.0 msgid 00000004 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=252 c7f2f1cc4997b30a61623222d4bfb535baa302199c4d8c1fdcfa745b0b29b5e7618ff0356848444d25010e5ad420760890ede066c838269b22d9e30d4fec1a012e731a210c243f803b661970d32e998e919f573c5742d2288949052c5a46a0cd7c4a1a295ede296c4fd9839b64dc4944e11a35f42a8ce18b447200fd03dbd58a71583b3a27c380148c801ce14452f7d756b1f55b10b84a58cfa9526001fff7157154645022e4456085517ceed98b79e20ed33297cf5ad80287e782728a8c6b87d2b422e7eeda1c72b33ebc51a5b76def9a59ffd1b4f97dec88c22a4f5448a71aeedf20c87dae5b44cd2e7a519d719a509f83f3b2faf6f5c607da609f) IP (tos 0x0, ttl 64, id 19919, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum d1d0!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum d1d0!] isakmp 2.0 msgid 00000005 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=220 dae6134a9cff1a4e3cc59a79e019a93f8469dd4e2faaaad1c3afba22ecd128fdb1e8954c753f8f62aeb6aac9732f414b065ec39569a670be6980c81eb3e44bc93ec63e9a754d0456c6703cd718371edeef674928180f9d14c39e52cfa4a517368e7db2fa0bfdb41cf56d97006233103f22650fdcd5ffab8418e40903e4749e126d06e9dc2a18cfd5bfda0013e3e9eb53e79bbe30eadf0f4ddcefbab0c08e870b29d39b2401c75b68fc46a066782857ca48d547e410ac15cabb6738875200b535cbd9ae1e1ce99839c9c25639070e5ed977809c50b6bb9550b50b49bb) IP (tos 0x0, ttl 64, id 19920, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum db6a!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum db6a!] isakmp 2.0 msgid 00000004 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 1fd8516b57b1ab1bdbcdba1930a5097decc023c5c534497ca53f178b9d4d11228746454371b0cc6ec067e14e1e5c5652840cfdae0ea84c7f0a6e799ff7fb131d15763feef45e80f24716cde47d23527f68e055a7c3adc7225489295e1bc3f1029b63822872865df55c6c275dead8a6f64bda8ae44f42c318fa71eb04eed7312dafd2dd8665fd5d3225f3aae6f7335b581c3a89c07af1009871dea9927f046432cd01b04234204d01583baf3a) IP (tos 0x0, ttl 64, id 19921, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 9a59!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 9a59!] isakmp 2.0 msgid 00000005 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 f6fc8113f34b92eb7d595a048f57d46593441ad9a61919e5919e7de4454fa35882937d3b74c83ab959fd053c6a12a51b04a0e92e01683782658bb9af2bbcc7a4bd5e1eef2dbcdc7715cac6eaecfbcc051a46f2263d1b8387bdad7e68c6e4ba1be9794e163e484768995a9f4a18edcbc6a44f0a74cb01c318e7848562e0866f388b8d04f14f1af87de7de6cee1f889d4330d82932a7127b7d1a934e641c32b76e33b37706d50286f8cbe335ba) IP (tos 0x0, ttl 64, id 19922, offset 0, flags [none], proto UDP (17), length 312) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 5ff4!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 5ff4!] isakmp 2.0 msgid 00000006 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=252 0aa2636a3b897ff3fa8093282ad1724ec9f326b64bf998e781d6edbb77a369a8444dc47a4dc095ebd3ac3b1dc337570bc42c93cd6dcb7289bc99a90874e66cc4ede7a13a58ce17c65b185e86def83d66f4c4ddc433e66baf1834e54296671357a5139b0b63ebf32e652df0938badea5a960ee1758e00faa643bed85f7adee2e2e75baeec9e0df88857a67ca5f2a2f4919d0b272313d42c791eb75feca145756a0ccae3640ee98c16689df511443228846d2c5b8830ea6d149c1abed11ad0a28ca33993036e91965d48a82a898145ada994af55978696480ab6cb697e13e67968a7748c3338786efb77250e5411b3a7eac84cd221324bd7b9109d9a69) IP (tos 0x0, ttl 64, id 19923, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 9890!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 9890!] isakmp 2.0 msgid 00000007 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=220 02c703f4bdd83246adc67e1ca07d7e7cfe21b6bde94637680a332813b8a4ca47341abd3a9c37263896c08252bfb1ea6c7ea44783b92ac52acb4fbfec53f03554281c6377650c09208f3d778b11e77b5fbd983be1e96699232392ef31a501fda73c6150fcc2e80bab1e0d49845bd5d511f7c9285ec08352687a2ac8d70d0dec3476491c40b97cb9da405606fc5e8d46bbe199e6d91ae993b7faa0583ec4296a80812fb7e0ae88d3bd54c4a30e5edb2778c960f3e0cb5b1369e999f84de4dc72b5d006805efb7e2d2ed4033e11ff9578012d22942e3799c9382506a021) IP (tos 0x0, ttl 64, id 19924, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 902e!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 902e!] isakmp 2.0 msgid 00000006 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 7e2e6623c66e161de9641ac7e1b6dfdcf3a5f45bbed123be88f3754d12514404afc054b3c7f789eb52a432a438359dde31152c11b8d209203d62779ca064823d70536c40f846d43d6694a2f12a3176f57007a3506c82fffaf3dbb713bbdbb5f540b7b39aee3c97145671504356095f7ab0c5a84347c0268bce259ca51b4a2dd75a7e3a7ee79f3bffc58d2fc0ac36686229f2309b5cd0c0dcc2af798664c14f5f166ab5e3c1f693092121aa44) IP (tos 0x0, ttl 64, id 19925, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 49dd!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 49dd!] isakmp 2.0 msgid 00000007 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 7b545033a2d35df2ab9f26c4bc444713910a32e60fb04cb10a9e76634787f9ddc138c6792faa074be2ebcb43f83f444249679018ec6dc7d4e2247dd8cb915778d90fa5597f1ecba8471db53e3b4da8f73d1eb60c23ca9fb5fa599dc526a961364471b49e5288fcef6a24d02a084d29c4a5c5d1fa305310dba01d09c9c36c86c0af297e05d3fc8559a11666a4363bacc354e96c941349b3f60dd397eb4c2bb09f381831167c0b33686c6bb5d8) IP (tos 0x0, ttl 64, id 19926, offset 0, flags [none], proto UDP (17), length 392) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 1d29!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 1d29!] isakmp 2.0 msgid 00000008 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=332 c4bf89ec6e7936ac98a432a525c2406de940b338c9149ce19cb1bf23a69dfd481df7b3ada1adbb70bf17074643edf97e63ade5ed07f74674f26c48d2d6a9044477ee9f203084c26e85405987ec8b9693deaea20ce78c2a451bf4e834d7bcc3c54c1322b5f28ba307f2ce31a00552b97b8fc103a29fee2e0040ccddfa10bf3ab3d1209e643c228dec575240c7bd750cf4d6d06c958f66bd8a79831df871f6fbd93e025b16bd03de35ffcdbabac65570d2367e624d9f8e8560da9bc3a2142b75008b7ceb8e839dbf425da74c4be15c9dc31735ef1ac6f65c2375042dcf9682df74259b8c4437d7ee8df19fea6ec1d5bd491409cc7276d70ee0ba9172b4177fbce7fa28171a236ca8e2e0c149e602c9c6a0a3ff5f054287f54b7c314b07cdf6d246241dd364c7419cc0647422d08f5511b13e7b5cb719616466e1c6966f5ccd4d2ca2b12dda7047c6f63af5dd47) IP (tos 0x0, ttl 64, id 19927, offset 0, flags [none], proto UDP (17), length 344) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 25cf!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 25cf!] isakmp 2.0 msgid 00000008 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=284 2c1ac864ae2c8499b3c7af8c61a8c4dc9e1af23577b588d6bb3fdef3e483cc2f0158c07071d6dfaef73dccb6cdcf7a5758e41778daceb71cf6733e17168beff6ef2015d670c0b6574fc72e97d4282909966f394a9f9e0fced8e269bbf60e93f0f2080f48dcd4e02ff1129b94f68b268ddd9cff436f38e78fa7986d87e622d1f3da3b3c2795570ebc27d3c3d51f29ef0fff01ae89bd71d2e10ab8faee7d7bb4b5be8a9ee0ea9b5e347bbaf3ebdfaf19735d75e6faa020d6ea72826c2aa5cb2ee648de6b36cbb25087428dea44bd34504e05f2d4fef43c48e2a690510e9278ca8ff2f775792af061b5ccbcf77b3fee658851289969c55edc6d561718a0c761b09b0f67c96e61d00a7fa2929023b5adcfdd33436f63a478141d51b52333) IP (tos 0x0, ttl 64, id 19928, offset 0, flags [none], proto UDP (17), length 120) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 6e7f!] isakmp 2.0 msgid cookie ->: parent_sa inf2[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 6e7f!] isakmp 2.0 msgid 00000000 cookie 1d9be9451d4f97a8->64a2a4b5d0e17b6a: parent_sa inf2[I]: (v2e: len=60 691b48829b6c5d6dd93fa8e33c38dd4c00f5434dc22b4251c0876f0bdb5dbba3dd06283907559a272f07ec7709b9d596a24cd8fe69b82a1f65dbf6f2) diff --git a/tests/ikev2fourv4.out b/tests/ikev2fourv4.out index 5976a9c1..a1ea343e 100644 --- a/tests/ikev2fourv4.out +++ b/tests/ikev2fourv4.out @@ -1,5 +1,5 @@ IP (tos 0x0, ttl 64, id 19908, offset 0, flags [none], proto UDP (17), length 404) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7aee!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7aee!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->0000000000000000: parent_sa ikev2_init[I]: (sa: len=116 (p: #1 protoid=isakmp transform=12 len=116 (t: #1 type=encr id=aes (type=keylen value=0080)) @@ -19,10 +19,10 @@ IP (tos 0x0, ttl 64, id 19908, offset 0, flags [none], proto UDP (17), length 40 (n: prot_id=#0 type=16388(nat_detection_source_ip) data=(442ffe5aea0cee4dbacc758e801233bdc09a0abf0000001c00004005ba041b5de59955900d818ac54e18b236739d9e8b)) (n: prot_id=#0 type=16389(nat_detection_destination_ip) data=(ba041b5de59955900d818ac54e18b236739d9e8b)) IP (tos 0x0, ttl 64, id 19909, offset 0, flags [none], proto UDP (17), length 88) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum a706!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum a706!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->0000000000000000: parent_sa ikev2_init[]: (n: prot_id=#0 type=16390(cookie) data=(00000001c2221e50c16e123f2b0c71aefcf0cb3b798782c6)) IP (tos 0x0, ttl 64, id 19910, offset 0, flags [none], proto UDP (17), length 436) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7d6f!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 7d6f!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->0000000000000000: parent_sa ikev2_init[I]: (n: prot_id=#0 type=16390(cookie) data=(00000001c2221e50c16e123f2b0c71aefcf0cb3b798782c622000078000000740101000c0300000c0100000c800e00800300000c0100000c800e01000300000c0100000c800e00c003000008010000030300000802000002030000080200000103000008020000040300000803000002030000080300000103000008030000050300000804000002000000080400000e2800008800020000b5445bd60cece6fdcd3c96a52cbb7bb426a8c7a0f56a9c38d1b1c4f0c3a6e8e7dba5c7339b6ed02e757119dfb5b6933ce93b604987fbbc77221b2a0c7cdd32787eff10572bef546c361462f9da34847969a42e51c755996beac42e6fba961a75de0fc1b23f099380896ee89202122dedac1bd54aa8494ac3d740be4d2a4cf39d290000246128ebd023a864e94a7ffb74bf7cce2fd4367322b8b073f942282bd52ebfe3e62900001c00004004442ffe5aea0cee4dbacc758e801233bdc09a0abf0000001c00004005ba041b5de59955900d818ac54e18b236739d9e8b)) (sa: len=116 (p: #1 protoid=isakmp transform=12 len=116 @@ -43,7 +43,7 @@ IP (tos 0x0, ttl 64, id 19910, offset 0, flags [none], proto UDP (17), length 43 (n: prot_id=#0 type=16388(nat_detection_source_ip) data=(442ffe5aea0cee4dbacc758e801233bdc09a0abf0000001c00004005ba041b5de59955900d818ac54e18b236739d9e8b)) (n: prot_id=#0 type=16389(nat_detection_destination_ip) data=(ba041b5de59955900d818ac54e18b236739d9e8b)) IP (tos 0x0, ttl 64, id 19911, offset 0, flags [none], proto UDP (17), length 332) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 337f!] isakmp 2.0 msgid cookie ->: parent_sa ikev2_init[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 337f!] isakmp 2.0 msgid 00000000 cookie a88875a8198992a6->71be8358efae7663: parent_sa ikev2_init[]: (sa: len=44 (p: #1 protoid=isakmp transform=4 len=44 (t: #1 type=encr id=aes (type=keylen value=0080)) @@ -55,53 +55,53 @@ IP (tos 0x0, ttl 64, id 19911, offset 0, flags [none], proto UDP (17), length 33 (n: prot_id=#0 type=16388(nat_detection_source_ip) data=(fe2bfb7c2c81ed0b61f756b57fac78a75ced8af60000001c00004005905954a783be2c37e2ccc4fdd270a532dbe6f428)) (n: prot_id=#0 type=16389(nat_detection_destination_ip) data=(905954a783be2c37e2ccc4fdd270a532dbe6f428)) IP (tos 0x0, ttl 64, id 19912, offset 0, flags [none], proto UDP (17), length 264) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum fdaa!] isakmp 2.0 msgid cookie ->: child_sa ikev2_auth[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum fdaa!] isakmp 2.0 msgid 00000001 cookie a88875a8198992a6->71be8358efae7663: child_sa ikev2_auth[I]: (v2e: len=204 f606135ad373e70836fda91b63ca4c608e1ad58218488c2647ff1e8a912958aa77efbc3068a2ae6ab7c3d0cb1e6fb864df99c62f2cc045708084708154a393c2f4cbefad1f6848525d49db563e13345a4e6e2fd066c04e2ce291f4714baec6bf328356c446247cab835bda3e8e1aae5967248f01eb3a1c02a541b4da09b3276b400d50a067542a678468c5f41e54017c00964f1003f8c88896a6f12215a5f1a060713cc83802cae3abee18417c0c35dc6f58a01adb96ed1c009c68e3069ae70f4b10afb7736c111ade4d826e) IP (tos 0x0, ttl 64, id 19913, offset 0, flags [none], proto UDP (17), length 184) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum bf00!] isakmp 2.0 msgid cookie ->: child_sa ikev2_auth[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum bf00!] isakmp 2.0 msgid 00000001 cookie a88875a8198992a6->71be8358efae7663: child_sa ikev2_auth[]: (v2e: len=124 6afe95bc5147b0ad7e4ccb9141c160a44f7c6eddc6b29d414ad5e2b882544fdc6c3ee6983ae1408b5764b1649343876454d1bf4d515aaf03c15eafe71be6b4cf51ab60630c45bcf0e2a2db8eee70095a4e010fdb342adb6d03dae5def9d4907cdfc8ccd6f3da9b7497c58e84a952d983bafb941ab1de1b0bb9ffad3b) IP (tos 0x0, ttl 64, id 19914, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum c32d!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum c32d!] isakmp 2.0 msgid 00000002 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=220 53cc6c0b41f14e4fc057c7f6a3524adde8521f26f67c058430a902db1a52ed16d322630d2eb515372dc12d97dc7c20552607e2ed193d9b33939e10aa2fc37b6199f0a629c6b58135f5b6f9e07906cd30dc3cae7d55fe08d95d3e660a623731c396a325adbff11c490f9fd102224391a65fb7bbe862945b64cf1fb833b9ce68c83df0b9d2ce7bd54f650864af9445e547cdfe5caa393344ae5274933b7efcf616821ea7daa9c5a6e8275ad6c688700cb7f4bcd6fb8025e93bb6dd5f581faebcbecb798c87617a4ec1b06ba290ac5fc1d6e4c2725c1f9f0e10b144fbbe) IP (tos 0x0, ttl 64, id 19915, offset 0, flags [none], proto UDP (17), length 248) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum e6d7!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum e6d7!] isakmp 2.0 msgid 00000003 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=188 9603e03f280964782717da15a502f0a9e9f17dbf4487c6923cf00b7040d539bc947c705790e4e99b834a7ae2a8d79f5620e11615e0a762889aab821e0d03132dfb8cc6b3718582411bcd98c242a8b10a66274dae1ce055fb30a4d3e64c969be6e08b626958f4446c6e4a0c8d7a24522959c6152e63a575c06930c2097539bfbdff08c70533428cf6b452e0b8b0259c2292925d2ed62e8956bc7e3a911a61509be1ac8f7b7cd4636176e524f4d0f17573f2aeddce2251fd6d5d9cd54d) IP (tos 0x0, ttl 64, id 19916, offset 0, flags [none], proto UDP (17), length 104) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum f2c0!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum f2c0!] isakmp 2.0 msgid 00000002 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=44 5bd2d26cb43b6cec30dec13fa387359797baf7b41e783422bc4dabf5d03ab2420d277d3b2f28d1f003da98d1) IP (tos 0x0, ttl 64, id 19917, offset 0, flags [none], proto UDP (17), length 104) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum e03a!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum e03a!] isakmp 2.0 msgid 00000003 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=44 38f60ab69110967961ae04af4e47a770260d61e29d18fb13ce093a47970068dacb342f7999cc3d0d59f77a94) IP (tos 0x0, ttl 64, id 19918, offset 0, flags [none], proto UDP (17), length 312) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 661c!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 661c!] isakmp 2.0 msgid 00000004 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=252 c7f2f1cc4997b30a61623222d4bfb535baa302199c4d8c1fdcfa745b0b29b5e7618ff0356848444d25010e5ad420760890ede066c838269b22d9e30d4fec1a012e731a210c243f803b661970d32e998e919f573c5742d2288949052c5a46a0cd7c4a1a295ede296c4fd9839b64dc4944e11a35f42a8ce18b447200fd03dbd58a71583b3a27c380148c801ce14452f7d756b1f55b10b84a58cfa9526001fff7157154645022e4456085517ceed98b79e20ed33297cf5ad80287e782728a8c6b87d2b422e7eeda1c72b33ebc51a5b76def9a59ffd1b4f97dec88c22a4f5448a71aeedf20c87dae5b44cd2e7a519d719a509f83f3b2faf6f5c607da609f) IP (tos 0x0, ttl 64, id 19919, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum d1d0!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum d1d0!] isakmp 2.0 msgid 00000005 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=220 dae6134a9cff1a4e3cc59a79e019a93f8469dd4e2faaaad1c3afba22ecd128fdb1e8954c753f8f62aeb6aac9732f414b065ec39569a670be6980c81eb3e44bc93ec63e9a754d0456c6703cd718371edeef674928180f9d14c39e52cfa4a517368e7db2fa0bfdb41cf56d97006233103f22650fdcd5ffab8418e40903e4749e126d06e9dc2a18cfd5bfda0013e3e9eb53e79bbe30eadf0f4ddcefbab0c08e870b29d39b2401c75b68fc46a066782857ca48d547e410ac15cabb6738875200b535cbd9ae1e1ce99839c9c25639070e5ed977809c50b6bb9550b50b49bb) IP (tos 0x0, ttl 64, id 19920, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum db6a!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum db6a!] isakmp 2.0 msgid 00000004 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 1fd8516b57b1ab1bdbcdba1930a5097decc023c5c534497ca53f178b9d4d11228746454371b0cc6ec067e14e1e5c5652840cfdae0ea84c7f0a6e799ff7fb131d15763feef45e80f24716cde47d23527f68e055a7c3adc7225489295e1bc3f1029b63822872865df55c6c275dead8a6f64bda8ae44f42c318fa71eb04eed7312dafd2dd8665fd5d3225f3aae6f7335b581c3a89c07af1009871dea9927f046432cd01b04234204d01583baf3a) IP (tos 0x0, ttl 64, id 19921, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 9a59!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 9a59!] isakmp 2.0 msgid 00000005 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 f6fc8113f34b92eb7d595a048f57d46593441ad9a61919e5919e7de4454fa35882937d3b74c83ab959fd053c6a12a51b04a0e92e01683782658bb9af2bbcc7a4bd5e1eef2dbcdc7715cac6eaecfbcc051a46f2263d1b8387bdad7e68c6e4ba1be9794e163e484768995a9f4a18edcbc6a44f0a74cb01c318e7848562e0866f388b8d04f14f1af87de7de6cee1f889d4330d82932a7127b7d1a934e641c32b76e33b37706d50286f8cbe335ba) IP (tos 0x0, ttl 64, id 19922, offset 0, flags [none], proto UDP (17), length 312) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 5ff4!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 5ff4!] isakmp 2.0 msgid 00000006 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=252 0aa2636a3b897ff3fa8093282ad1724ec9f326b64bf998e781d6edbb77a369a8444dc47a4dc095ebd3ac3b1dc337570bc42c93cd6dcb7289bc99a90874e66cc4ede7a13a58ce17c65b185e86def83d66f4c4ddc433e66baf1834e54296671357a5139b0b63ebf32e652df0938badea5a960ee1758e00faa643bed85f7adee2e2e75baeec9e0df88857a67ca5f2a2f4919d0b272313d42c791eb75feca145756a0ccae3640ee98c16689df511443228846d2c5b8830ea6d149c1abed11ad0a28ca33993036e91965d48a82a898145ada994af55978696480ab6cb697e13e67968a7748c3338786efb77250e5411b3a7eac84cd221324bd7b9109d9a69) IP (tos 0x0, ttl 64, id 19923, offset 0, flags [none], proto UDP (17), length 280) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 9890!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 9890!] isakmp 2.0 msgid 00000007 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=220 02c703f4bdd83246adc67e1ca07d7e7cfe21b6bde94637680a332813b8a4ca47341abd3a9c37263896c08252bfb1ea6c7ea44783b92ac52acb4fbfec53f03554281c6377650c09208f3d778b11e77b5fbd983be1e96699232392ef31a501fda73c6150fcc2e80bab1e0d49845bd5d511f7c9285ec08352687a2ac8d70d0dec3476491c40b97cb9da405606fc5e8d46bbe199e6d91ae993b7faa0583ec4296a80812fb7e0ae88d3bd54c4a30e5edb2778c960f3e0cb5b1369e999f84de4dc72b5d006805efb7e2d2ed4033e11ff9578012d22942e3799c9382506a021) IP (tos 0x0, ttl 64, id 19924, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 902e!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 902e!] isakmp 2.0 msgid 00000006 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 7e2e6623c66e161de9641ac7e1b6dfdcf3a5f45bbed123be88f3754d12514404afc054b3c7f789eb52a432a438359dde31152c11b8d209203d62779ca064823d70536c40f846d43d6694a2f12a3176f57007a3506c82fffaf3dbb713bbdbb5f540b7b39aee3c97145671504356095f7ab0c5a84347c0268bce259ca51b4a2dd75a7e3a7ee79f3bffc58d2fc0ac36686229f2309b5cd0c0dcc2af798664c14f5f166ab5e3c1f693092121aa44) IP (tos 0x0, ttl 64, id 19925, offset 0, flags [none], proto UDP (17), length 232) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 49dd!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 49dd!] isakmp 2.0 msgid 00000007 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=172 7b545033a2d35df2ab9f26c4bc444713910a32e60fb04cb10a9e76634787f9ddc138c6792faa074be2ebcb43f83f444249679018ec6dc7d4e2247dd8cb915778d90fa5597f1ecba8471db53e3b4da8f73d1eb60c23ca9fb5fa599dc526a961364471b49e5288fcef6a24d02a084d29c4a5c5d1fa305310dba01d09c9c36c86c0af297e05d3fc8559a11666a4363bacc354e96c941349b3f60dd397eb4c2bb09f381831167c0b33686c6bb5d8) IP (tos 0x0, ttl 64, id 19926, offset 0, flags [none], proto UDP (17), length 392) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 1d29!] isakmp 2.0 msgid cookie ->: child_sa child_sa[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 1d29!] isakmp 2.0 msgid 00000008 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[I]: (v2e: len=332 c4bf89ec6e7936ac98a432a525c2406de940b338c9149ce19cb1bf23a69dfd481df7b3ada1adbb70bf17074643edf97e63ade5ed07f74674f26c48d2d6a9044477ee9f203084c26e85405987ec8b9693deaea20ce78c2a451bf4e834d7bcc3c54c1322b5f28ba307f2ce31a00552b97b8fc103a29fee2e0040ccddfa10bf3ab3d1209e643c228dec575240c7bd750cf4d6d06c958f66bd8a79831df871f6fbd93e025b16bd03de35ffcdbabac65570d2367e624d9f8e8560da9bc3a2142b75008b7ceb8e839dbf425da74c4be15c9dc31735ef1ac6f65c2375042dcf9682df74259b8c4437d7ee8df19fea6ec1d5bd491409cc7276d70ee0ba9172b4177fbce7fa28171a236ca8e2e0c149e602c9c6a0a3ff5f054287f54b7c314b07cdf6d246241dd364c7419cc0647422d08f5511b13e7b5cb719616466e1c6966f5ccd4d2ca2b12dda7047c6f63af5dd47) IP (tos 0x0, ttl 64, id 19927, offset 0, flags [none], proto UDP (17), length 344) - 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 25cf!] isakmp 2.0 msgid cookie ->: child_sa child_sa[]: + 192.168.1.1.500 > 192.168.1.2.500: [bad udp cksum 25cf!] isakmp 2.0 msgid 00000008 cookie a88875a8198992a6->71be8358efae7663: child_sa child_sa[]: (v2e: len=284 2c1ac864ae2c8499b3c7af8c61a8c4dc9e1af23577b588d6bb3fdef3e483cc2f0158c07071d6dfaef73dccb6cdcf7a5758e41778daceb71cf6733e17168beff6ef2015d670c0b6574fc72e97d4282909966f394a9f9e0fced8e269bbf60e93f0f2080f48dcd4e02ff1129b94f68b268ddd9cff436f38e78fa7986d87e622d1f3da3b3c2795570ebc27d3c3d51f29ef0fff01ae89bd71d2e10ab8faee7d7bb4b5be8a9ee0ea9b5e347bbaf3ebdfaf19735d75e6faa020d6ea72826c2aa5cb2ee648de6b36cbb25087428dea44bd34504e05f2d4fef43c48e2a690510e9278ca8ff2f775792af061b5ccbcf77b3fee658851289969c55edc6d561718a0c761b09b0f67c96e61d00a7fa2929023b5adcfdd33436f63a478141d51b52333) IP (tos 0x0, ttl 64, id 19928, offset 0, flags [none], proto UDP (17), length 120) - 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 6e7f!] isakmp 2.0 msgid cookie ->: parent_sa inf2[I]: + 192.168.1.2.500 > 192.168.1.1.500: [bad udp cksum 6e7f!] isakmp 2.0 msgid 00000000 cookie 1d9be9451d4f97a8->64a2a4b5d0e17b6a: parent_sa inf2[I]: (v2e: len=60 691b48829b6c5d6dd93fa8e33c38dd4c00f5434dc22b4251c0876f0bdb5dbba3dd06283907559a272f07ec7709b9d596a24cd8fe69b82a1f65dbf6f2) diff --git a/tests/ikev2pI2-secrets.txt b/tests/ikev2pI2-secrets.txt new file mode 100644 index 00000000..efe96367 --- /dev/null +++ b/tests/ikev2pI2-secrets.txt @@ -0,0 +1,2 @@ +ikev2 I 0x0001020304050607 0xc02e7a3031a03188 sha1:0x4ea8e662b07cdd430f6944c6723e4b82d5722418 aes128:0x3f44bf47cafd8150591deb088199fcbf +ikev2 R 0x0001020304050607 0xc02e7a3031a03188 sha1:0x515b0bd22e6d76b34fdb760aa7bfad80b109b75d aes128:0xbedb67ec7dc3d00cccac42e70cd63bde diff --git a/tests/ikev2pI2.out b/tests/ikev2pI2.out new file mode 100644 index 00000000..68fdc3bc --- /dev/null +++ b/tests/ikev2pI2.out @@ -0,0 +1,40 @@ +IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 536, bad cksum 0 (->f48e)!) + 192.1.2.45.500 > 192.1.2.23.500: [no cksum] isakmp 2.0 msgid 00000000 cookie 0001020304050607->0000000000000000: parent_sa ikev2_init[I]: + (sa[C]: len=240 + (p: #1 protoid=isakmp transform=4 len=40 + (t: #1 type=encr id=aes ) + (t: #2 type=integ id=hmac-sha ) + (t: #3 type=prf id=hmac-sha ) + (t: #4 type=dh id=modp1536 )) + (p: #2 protoid=isakmp transform=4 len=40 + (t: #1 type=encr id=aes ) + (t: #2 type=integ id=hmac-sha ) + (t: #3 type=prf id=hmac-md5 ) + (t: #4 type=dh id=modp1536 )) + (p: #3 protoid=isakmp transform=4 len=40 + (t: #1 type=encr id=3des ) + (t: #2 type=integ id=hmac-sha ) + (t: #3 type=prf id=hmac-sha ) + (t: #4 type=dh id=modp1536 )) + (p: #4 protoid=isakmp transform=4 len=40 + (t: #1 type=encr id=3des ) + (t: #2 type=integ id=hmac-sha ) + (t: #3 type=prf id=hmac-md5 ) + (t: #4 type=dh id=modp1536 )) + (p: #5 protoid=isakmp transform=4 len=40 + (t: #1 type=encr id=3des ) + (t: #2 type=integ id=hmac-sha ) + (t: #3 type=prf id=hmac-sha ) + (t: #4 type=dh id=modp1024 )) + (p: #6 protoid=isakmp transform=4 len=40 + (t: #1 type=encr id=3des ) + (t: #2 type=integ id=hmac-sha ) + (t: #3 type=prf id=hmac-md5 ) + (t: #4 type=dh id=modp1024 ))) + (v2ke: len=192 group=modp1536 ffbc6a92a6b9559b05fa96a7a43507b4c1e1c0861a5871d9ba73a163113788c0debb3979e7ff0c52b4ce6050eb05369ea4300d2bff3b1b299f3b802ccb13318c2ab9e3b5627cb4b35eb939982076b57c050d7b35c3c5c7cc8c0feab7b64a7d7b6b8f6b4dabf4ac406dd20126b90a98ac766efa37a7890c4394ff9a77615b58f52d651bbfa58d2a549af8b01aa4bca3d762426663b155d4ebda9f60a6a13573e6a888135cdc673dd483029903f3a90eca23e1ec1e270331b2d050f4f758f49927) + (nonce[C]: len=16 nonce=(b5ce8419095c6e2b6b62d3055305b3c4) ) + (v2vid: len=12 vid=OErlA\nQukSR 4f45726c415c6e51756b5352) +IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 104, bad cksum 0 (->f63e)!) + 192.1.2.45.500 > 192.1.2.23.500: [no cksum] isakmp 2.0 msgid 00000000 cookie 0001020304050607->c02e7a3031a03188: parent_sa ikev2_auth[I]: + (v2e[C]: len=44 000102030405060708090a0b0c0d0e0fd8f2296434ebccbe2f8bd583e6fb5d70f1d49a6664082da3e2585249 + (v2IDi: len=8 0200000077657374 fqdn:west)) diff --git a/tests/ikev2pI2.puu b/tests/ikev2pI2.puu new file mode 100644 index 00000000..c4f58461 --- /dev/null +++ b/tests/ikev2pI2.puu @@ -0,0 +1,19 @@ +begin 644 ikev2pI2.pcap +MU,.RH0(`!````````````-P%````````@%$!```````<`@``'`(```(```!% +M``(8`````$`1``#``0(MP`$"%P'T`?0"!`````$"`P0%!@<``````````"$@ +M(@@````````!_"*``/0"```H`0$`!`,```@!```,`P``"`,```(#```(`@`` +M`@````@$```%`@``*`(!``0#```(`0``#`,```@#```"`P``"`(```$````( +M!```!0(``"@#`0`$`P``"`$```,#```(`P```@,```@"```"````"`0```4" +M```H!`$`!`,```@!```#`P``"`,```(#```(`@```0````@$```%`@``*`4! +M``0#```(`0```P,```@#```"`P``"`(```(````(!````@```"@&`0`$`P`` +M"`$```,#```(`P```@,```@"```!````"`0```(H``#(``4``/^\:I*FN56; +M!?J6IZ0U![3!X<"&&EAQV;ISH6,1-XC`WKLY>>?_#%*TSF!0ZP4VGJ0P#2O_ +M.QLIGSN`+,L3,8PJN>.U8GRTLUZY.9@@=K5\!0U[-</%Q\R,#^JWMDI]>VN/ +M:TVK]*Q`;=(!)KD*F*QV;OHWIXD,0Y3_FG=A6UCU+64;OZ6-*E2:^+`:I+RC +MUV)"9F.Q5=3KVI]@IJ$U<^:HB!-<W&<]U(,"F0/SJ0[*(^'L'B<#,;+04/3W +M6/29)RN``!2USH09"5QN*VMBTP53!;/$````$$]%<FQ!7&Y1=6M34@"C`@`` +M````;````&P````"````10``:`````!`$0``P`$"+<`!`A<!]`'T`%0````! +M`@,$!08'P"YZ,#&@,8@N(",(`````````$PC@``P``$"`P0%!@<("0H+#`T. +=#]CR*60TZ\R^+XO5@^;[77#QU)IF9`@MH^)84DD` +` +end diff --git a/tests/isakmp3.out b/tests/isakmp3.out index 275ed95b..86192639 100644 --- a/tests/isakmp3.out +++ b/tests/isakmp3.out @@ -1,3 +1,3 @@ IP (tos 0x0, ttl 255, id 41068, offset 0, flags [none], proto UDP (17), length 312) - 127.0.0.1.501 > 127.0.0.1.500: isakmp 1.0 msgid : phase 1 I ident: + 127.0.0.1.501 > 127.0.0.1.500: isakmp 1.0 msgid 00000000: phase 1 I ident: (id: idtype=FQDN protoid=0 port=0 len=248 \0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00) |