Skip to content

Commit 5f37ff0

Browse files
committed
IPv6 mobility: Add a test file
ipv6_mobility_1.pcap is built with scapy. It contains the following messages: Binding Refresh Request Message Home Test Init Message Care-of Test Init Message Home Test Message Care-of Test Message Binding Update Message (BU) Binding Acknowledgement Message (BA) Binding Error Message It contains the following options: Pad1 PadN Binding Refresh Advice (in BA) Alternate Care-of Address (in BU) Nonce Indices (in BU) Binding Authorization Data (in BU, BA)
1 parent 8d4f6e0 commit 5f37ff0

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

tests/TESTLIST

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,3 +1043,8 @@ LINKTYPE_IPV4_invalid LINKTYPE_IPV4_invalid.pcap LINKTYPE_IPV4_invalid.out
10431043
LINKTYPE_IPV4_invalid-e LINKTYPE_IPV4_invalid.pcap LINKTYPE_IPV4_invalid-e.out -e
10441044
LINKTYPE_IPV6_invalid LINKTYPE_IPV6_invalid.pcap LINKTYPE_IPV6_invalid.out
10451045
LINKTYPE_IPV6_invalid-e LINKTYPE_IPV6_invalid.pcap LINKTYPE_IPV6_invalid-e.out -e
1046+
1047+
# Mobility Support in IPv6
1048+
# ipv6_mobility_1.pcap is built with scapy
1049+
ipv6_mobility_1 ipv6_mobility_1.pcap ipv6_mobility_1.out
1050+
ipv6_mobility_1-v ipv6_mobility_1.pcap ipv6_mobility_1-v.out -v

tests/ipv6_mobility_1-v.out

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
1 2025-07-17 12:10:56.004346 IP6 (hlim 64, next-header Mobility (135), payload length 8) 2001:db8::1 > 2001:db8::2: mobility: BRR
2+
2 2025-07-17 12:10:56.005457 IP6 (hlim 64, next-header Mobility (135), payload length 16) 2001:db8::1 > 2001:db8::2: mobility: HoTI Home Init Cookie=01020304:05060708
3+
3 2025-07-17 12:10:56.006410 IP6 (hlim 64, next-header Mobility (135), payload length 16) 2001:db8::1 > 2001:db8::2: mobility: CoTI Care-of Init Cookie=090a0b0c:0d0e0f10
4+
4 2025-07-17 12:10:56.007470 IP6 (hlim 64, next-header Mobility (135), payload length 24) 2001:db8::1 > 2001:db8::2: mobility: HoT nonce id=0x90a Home Init Cookie=0b0c0d0e:0f1004d2 Home Keygen Token=11121314:15161718
5+
5 2025-07-17 12:10:56.008509 IP6 (hlim 64, next-header Mobility (135), payload length 24) 2001:db8::1 > 2001:db8::2: mobility: CoT nonce id=0x90a Care-of Init Cookie=0b0c0d0e:0f10162e Care-of Keygen Token=191a1b1c:1d1e1f20
6+
6 2025-07-17 12:10:56.010012 IP6 (hlim 64, next-header Mobility (135), payload length 16) 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400(padn)
7+
7 2025-07-17 12:10:56.011973 IP6 (hlim 64, next-header Mobility (135), payload length 32) 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400(alt-CoA: 2001:660:4701:f004:20d:54ff:fe98:bc93)(padn)
8+
8 2025-07-17 12:10:56.013393 IP6 (hlim 64, next-header Mobility (135), payload length 24) 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400(ni: ho=0x04d2 co=0x162e)(padn)
9+
9 2025-07-17 12:10:56.014768 IP6 (hlim 64, next-header Mobility (135), payload length 32) 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400(auth)(padn)
10+
10 2025-07-17 12:10:56.016129 IP6 (hlim 64, next-header Mobility (135), payload length 56) 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400(alt-CoA: 2001:660:4701:f004:20d:54ff:fe98:bc93)(ni: ho=0x04d2 co=0x162e)(auth)(padn)
11+
11 2025-07-17 12:10:56.017534 IP6 (hlim 64, next-header Mobility (135), payload length 16) 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400(padn)
12+
12 2025-07-17 12:10:56.018886 IP6 (hlim 64, next-header Mobility (135), payload length 16) 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400(refresh: 7200)
13+
13 2025-07-17 12:10:56.020575 IP6 (hlim 64, next-header Mobility (135), payload length 32) 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400(auth)(padn)
14+
14 2025-07-17 12:10:56.021972 IP6 (hlim 64, next-header Mobility (135), payload length 32) 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400(refresh: 7200)(auth)(padn)
15+
15 2025-07-17 12:10:56.023034 IP6 (hlim 64, next-header Mobility (135), payload length 24) 2001:db8::1 > 2001:db8::2: mobility: BE status=1 homeaddr 2001:db8::1
16+
16 2025-07-17 12:10:56.024547 IP6 (hlim 64, next-header Mobility (135), payload length 16) 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400(pad1)(pad1)(pad1)(pad1)

tests/ipv6_mobility_1.out

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
1 2025-07-17 12:10:56.004346 IP6 2001:db8::1 > 2001:db8::2: mobility: BRR
2+
2 2025-07-17 12:10:56.005457 IP6 2001:db8::1 > 2001:db8::2: mobility: HoTI
3+
3 2025-07-17 12:10:56.006410 IP6 2001:db8::1 > 2001:db8::2: mobility: CoTI
4+
4 2025-07-17 12:10:56.007470 IP6 2001:db8::1 > 2001:db8::2: mobility: HoT nonce id=0x90a
5+
5 2025-07-17 12:10:56.008509 IP6 2001:db8::1 > 2001:db8::2: mobility: CoT nonce id=0x90a
6+
6 2025-07-17 12:10:56.010012 IP6 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400
7+
7 2025-07-17 12:10:56.011973 IP6 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400
8+
8 2025-07-17 12:10:56.013393 IP6 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400
9+
9 2025-07-17 12:10:56.014768 IP6 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400
10+
10 2025-07-17 12:10:56.016129 IP6 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400
11+
11 2025-07-17 12:10:56.017534 IP6 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400
12+
12 2025-07-17 12:10:56.018886 IP6 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400
13+
13 2025-07-17 12:10:56.020575 IP6 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400
14+
14 2025-07-17 12:10:56.021972 IP6 2001:db8::1 > 2001:db8::2: mobility: BA status=0 seq#=1000 lifetime=14400
15+
15 2025-07-17 12:10:56.023034 IP6 2001:db8::1 > 2001:db8::2: mobility: BE status=1 homeaddr 2001:db8::1
16+
16 2025-07-17 12:10:56.024547 IP6 2001:db8::1 > 2001:db8::2: mobility: BU seq#=1000 A lifetime=14400

tests/ipv6_mobility_1.pcap

1.27 KB
Binary file not shown.

0 commit comments

Comments
 (0)