summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerry Huberts <ferry.huberts@pelagic.nl>2015-04-24 19:03:48 +0200
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-05-03 17:30:47 +0200
commit672112b1f451c044432deb6400757cd1f803f479 (patch)
tree990cb32f2b5a60d321413bad8f15c91de7690a71
parent4b4106c93da097c6d968b4a6e60c5041659812bb (diff)
downloadtcpdump-672112b1f451c044432deb6400757cd1f803f479.tar.gz
olsr: add a test to cover a HNA sgw case
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
-rw-r--r--tests/OLSRv1_HNA_sgw_1.out13
-rw-r--r--tests/OLSRv1_HNA_sgw_1.pcapbin0 -> 158 bytes
-rw-r--r--tests/TESTLIST3
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/OLSRv1_HNA_sgw_1.out b/tests/OLSRv1_HNA_sgw_1.out
new file mode 100644
index 00000000..0f41cdcd
--- /dev/null
+++ b/tests/OLSRv1_HNA_sgw_1.out
@@ -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%
diff --git a/tests/OLSRv1_HNA_sgw_1.pcap b/tests/OLSRv1_HNA_sgw_1.pcap
new file mode 100644
index 00000000..f975d8fc
--- /dev/null
+++ b/tests/OLSRv1_HNA_sgw_1.pcap
Binary files differ
diff --git a/tests/TESTLIST b/tests/TESTLIST
index 6487afaa..2a08ad67 100644
--- a/tests/TESTLIST
+++ b/tests/TESTLIST
@@ -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