From: mcr Date: Thu, 7 Apr 2005 00:20:51 +0000 (+0000) Subject: added ESP-in-UDP test cases. X-Git-Tag: tcpdump-3.9.1~166 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/289b2a35d4408f8d25a8e369a7c1083d01392861?hp=dae83bc69ad37e06f8fab132cef80e4b83ed7874 added ESP-in-UDP test cases. --- diff --git a/tests/isakmp4.out b/tests/isakmp4.out new file mode 100644 index 00000000..8c5b7dae --- /dev/null +++ b/tests/isakmp4.out @@ -0,0 +1,35 @@ +arp who-has 192.1.2.23 tell 192.1.2.254 +arp reply 192.1.2.23 is-at 10:00:00:64:64:23 +IP 192.1.2.254.500 > 192.1.2.23.500: isakmp: phase 1 I ident +IP 192.1.2.23.500 > 192.1.2.254.500: isakmp: phase 1 R ident +IP 192.1.2.254.500 > 192.1.2.23.500: isakmp: phase 1 I ident +IP 192.1.2.23.500 > 192.1.2.254.500: isakmp: phase 1 R ident +IP 192.1.2.254.4500 > 192.1.2.23.4500: NONESP-encap: isakmp: phase 1 I ident[E] +IP 192.1.2.23.4500 > 192.1.2.254.4500: NONESP-encap: isakmp: phase 1 R ident[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: NONESP-encap: isakmp: phase 2/others I oakley-quick[E] +IP 192.1.2.23.4500 > 192.1.2.254.4500: NONESP-encap: isakmp: phase 2/others R oakley-quick[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: NONESP-encap: isakmp: phase 2/others I oakley-quick[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x1), length 132 +arp who-has 192.1.2.254 tell 192.1.2.23 +arp reply 192.1.2.254 is-at 10:00:00:de:ad:ba +IP 192.1.2.23.4500 > 192.1.2.254.4500: NONESP-encap: isakmp: phase 2/others R oakley-quick[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: NONESP-encap: isakmp: phase 2/others I oakley-quick[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x2), length 132 +IP 192.1.2.254.4500 > 192.1.2.23.4500: isakmp-nat-keep-alive +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x3), length 132 +IP 192.1.2.23.4500 > 192.1.2.254.4500: NONESP-encap: isakmp: phase 2/others R oakley-quick[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: NONESP-encap: isakmp: phase 2/others I oakley-quick[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x4), length 132 +IP 192.1.2.254.4500 > 192.1.2.23.4500: isakmp-nat-keep-alive +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x5), length 132 +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x6), length 132 +arp who-has 192.1.2.23 tell 192.1.2.254 +arp reply 192.1.2.23 is-at 10:00:00:64:64:23 +IP 192.1.2.254.4500 > 192.1.2.23.4500: isakmp-nat-keep-alive +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x7), length 132 +IP 192.1.2.23.4500 > 192.1.2.254.4500: NONESP-encap: isakmp: phase 2/others R oakley-quick[E] +IP 192.1.2.254.4500 > 192.1.2.23.4500: UDP-encap: ESP(spi=0xf4dc0ae5,seq=0x8), length 132 +arp who-has 192.1.2.254 tell 192.1.2.23 +arp reply 192.1.2.254 is-at 10:00:00:de:ad:ba +IP 192.1.2.254.4500 > 192.1.2.23.4500: isakmp-nat-keep-alive +IP 192.1.2.23.4500 > 192.1.2.254.4500: NONESP-encap: isakmp: phase 2/others R inf[E] diff --git a/tests/isakmp4.sh b/tests/isakmp4.sh index 3d75c22a..dd7bf078 100644 --- a/tests/isakmp4.sh +++ b/tests/isakmp4.sh @@ -3,8 +3,8 @@ uudecode isakmp4500.puu echo -n test isakmp4... -../tcpdump -t -n -E "file esp-secrets.txt" -r isakmp4500.pcap >isakmp4500.new -if diff isakmp4500.new isakmp4500.out +../tcpdump -t -n -E "file esp-secrets.txt" -r isakmp4500.pcap >isakmp4.new +if diff isakmp4.new isakmp4.out then echo passed. else