olsr: add a test to cover a HNA sgw case

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
Ferry Huberts 2015-04-24 19:03:48 +02:00 committed by Francois-Xavier Le Bail
parent 4b4106c93d
commit 672112b1f4
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,13 @@
IP (tos 0x10, ttl 1, id 25245, offset 0, flags [DF], proto UDP (17), length 100)
172.29.175.220.698 > 255.255.255.255.698: OLSRv4, seq 0xce93, length 72
HNA Message (0x04), originator 172.31.175.220, ttl 255, hop 0
vtime 288.000s, msg-seq 0x6ce5, length 28
Advertised networks (total 2)
Smart-Gateway: LINKSPEED IPV4 IPV4-NAT 10000/10000, 10.175.220.0/24
Hello-LQ Message (0xc9), originator 172.31.175.220, ttl 1, hop 0
vtime 3.000s, msg-seq 0x6ce6, length 40
hello-time 1.000s, MPR willingness 3
link-type Symmetric, neighbor-type Symmetric, len 12
neighbor 172.29.175.221, link-quality 0.00%, neighbor-link-quality 0.00%
link-type Unspecified, neighbor-type Symmetric, len 12
neighbor 172.31.175.221, link-quality 0.00%, neighbor-link-quality 0.00%

BIN
tests/OLSRv1_HNA_sgw_1.pcap Normal file

Binary file not shown.

View File

@ -293,3 +293,6 @@ kday8 kday8.pcap kday8.out -t -v
# bad packets from reversex86.
cve2015-0261_01 cve2015-0261-ipv6.pcap cve2015-0261-ipv6.out -t -v
cve2015-0261_02 cve2015-0261-crash.pcap cve2015-0261-crash.out -t -v
# OLSRv1 tests
olsrv1_1 OLSRv1_HNA_sgw_1.pcap OLSRv1_HNA_sgw_1.out -t -v -n