LISP: Add three test cases (existing pcap printed without "-v")

Rename three test and three test outputs, with "-v" in the names.

(cherry picked from commit ec5170b265)
This commit is contained in:
Francois-Xavier Le Bail 2024-11-20 20:46:02 +01:00
parent 4629a3a2e4
commit 5f78b97815
7 changed files with 146 additions and 107 deletions

View File

@ -484,9 +484,12 @@ olsrv1_1 OLSRv1_HNA_sgw_1.pcap OLSRv1_HNA_sgw_1.out -v
unaligned-nfs-1 unaligned-nfs-1.pcap unaligned-nfs-1.out -v
# LISP tests
lisp_eid_notify lisp_eid_notify.pcap lisp_eid_notify.out -v
lisp_eid_register lisp_eid_register.pcap lisp_eid_register.out -v
lisp_ipv6_eid lisp_ipv6.pcap lisp_ipv6.out -v
lisp_eid_notify lisp_eid_notify.pcap lisp_eid_notify.out
lisp_eid_register lisp_eid_register.pcap lisp_eid_register.out
lisp_ipv6_eid lisp_ipv6.pcap lisp_ipv6.out
lisp_eid_notify-v lisp_eid_notify.pcap lisp_eid_notify-v.out -v
lisp_eid_register-v lisp_eid_register.pcap lisp_eid_register-v.out -v
lisp_ipv6_eid-v lisp_ipv6.pcap lisp_ipv6-v.out -v
# NSH tests
nsh nsh.pcap nsh.out

View File

@ -0,0 +1,62 @@
1 2015-08-22 11:09:05.156268 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 160)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [none],
3 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.80/32, 1 locator(s)
LOC 20.20.8.239
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
2 2015-08-22 11:09:05.615558 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 156)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [I-xTR-ID-Present],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0
3 2015-08-22 11:09:06.507423 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 160)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [I-xTR-ID-Present],
3 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.80/32, 1 locator(s)
LOC 20.20.8.239
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none], (invalid)
4 2015-08-22 11:09:07.451778 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 156)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [none],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Data: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
Data: 0x0010: 0000 0000 0000 0000

View File

@ -1,62 +1,18 @@
1 2015-08-22 11:09:05.156268 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 160)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [none],
3 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.80/32, 1 locator(s)
LOC 20.20.8.239
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
2 2015-08-22 11:09:05.615558 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 156)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [I-xTR-ID-Present],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
1 2015-08-22 11:09:05.156268 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, 3 record(s),
EID 10.30.1.100/32, 1 locator(s) LOC 20.20.8.253
EID 10.30.1.96/32, 2 locator(s) LOC 20.20.8.251 LOC 20.20.8.252
EID 10.30.1.80/32, 1 locator(s) LOC 20.20.8.239
2 2015-08-22 11:09:05.615558 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, 2 record(s),
EID 10.30.1.100/32, 1 locator(s) LOC 20.20.8.253
EID 10.30.1.96/32, 2 locator(s) LOC 20.20.8.251 LOC 20.20.8.252
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0
3 2015-08-22 11:09:06.507423 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 160)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [I-xTR-ID-Present],
3 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.80/32, 1 locator(s)
LOC 20.20.8.239
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none], (invalid)
4 2015-08-22 11:09:07.451778 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 156)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [none],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
3 2015-08-22 11:09:06.507423 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, 3 record(s),
EID 10.30.1.100/32, 1 locator(s) LOC 20.20.8.253
EID 10.30.1.96/32, 2 locator(s) LOC 20.20.8.251 LOC 20.20.8.252
EID 10.30.1.80/32, 1 locator(s) LOC 20.20.8.239 (invalid)
4 2015-08-22 11:09:07.451778 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, 2 record(s),
EID 10.30.1.100/32, 1 locator(s) LOC 20.20.8.253
EID 10.30.1.96/32, 2 locator(s) LOC 20.20.8.251 LOC 20.20.8.252
Data: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
Data: 0x0010: 0000 0000 0000 0000

View File

@ -0,0 +1,28 @@
1 2015-08-17 19:46:29.089857 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 144)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, flags [I-xTR-ID-Present, M-Want-Map-Notify],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 1 locator(s)
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0
2 2015-08-17 19:46:31.324329 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 156)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, flags [I-xTR-ID-Present, M-Want-Map-Notify],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0

View File

@ -1,28 +1,10 @@
1 2015-08-17 19:46:29.089857 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 144)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, flags [I-xTR-ID-Present, M-Want-Map-Notify],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 1 locator(s)
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
1 2015-08-17 19:46:29.089857 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, 2 record(s),
EID 10.30.1.100/32, 1 locator(s) LOC 20.20.8.253
EID 10.30.1.96/32, 1 locator(s) LOC 20.20.8.252
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0
2 2015-08-17 19:46:31.324329 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 156)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, flags [I-xTR-ID-Present, M-Want-Map-Notify],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.100/32, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 10.30.1.96/32, 2 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
LOC 20.20.8.252
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
2 2015-08-17 19:46:31.324329 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, 2 record(s),
EID 10.30.1.100/32, 1 locator(s) LOC 20.20.8.253
EID 10.30.1.96/32, 2 locator(s) LOC 20.20.8.251 LOC 20.20.8.252
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0

24
tests/lisp_ipv6-v.out Normal file
View File

@ -0,0 +1,24 @@
1 2015-08-21 19:37:39.175900 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 168)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, flags [I-xTR-ID-Present, M-Want-Map-Notify],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:85a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:95a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0
2 2015-08-21 19:37:42.169026 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 144)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [none],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:85a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:95a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],

View File

@ -1,24 +1,8 @@
1 2015-08-21 19:37:39.175900 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 168)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, flags [I-xTR-ID-Present, M-Want-Map-Notify],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:85a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:95a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
1 2015-08-21 19:37:39.175900 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Register, 2 record(s),
EID 2001:db8:85a3::8a2e:370:7334/80, 1 locator(s) LOC 20.20.8.253
EID 2001:db8:95a3::8a2e:370:7334/80, 1 locator(s) LOC 20.20.8.251
xTR-ID: 0x0000: 9787 ad75 3caf 58a7 13fa 6920 e6d2 7a8f
SITE-ID: 0
2 2015-08-21 19:37:42.169026 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 144)
192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, flags [none],
2 record(s), Authentication SHA1,
Authentication-Data: 0x0000: 4bbb 9614 a67a 8604 0407 7995 4537 1906
Authentication-Data: 0x0010: 836c d1d6
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:85a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.253
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
Record TTL 1440, Authoritative, No-Action, Map Version: 0, EID 2001:db8:95a3::8a2e:370:7334/80, 1 locator(s)
LOC 20.20.8.251
Priority/Weight 1/100, Multicast Priority/Weight 1/100, flags [none],
2 2015-08-21 19:37:42.169026 IP 192.168.0.105.4342 > 127.0.0.1.4342: LISP-Map-Notify, 2 record(s),
EID 2001:db8:85a3::8a2e:370:7334/80, 1 locator(s) LOC 20.20.8.253
EID 2001:db8:95a3::8a2e:370:7334/80, 1 locator(s) LOC 20.20.8.251