]> The Tcpdump Group git mirrors - tcpdump/commitdiff
add a testcase for a LDP Hello encapsulated in MPLS
authorhannes <hannes>
Thu, 8 Jan 2004 07:10:59 +0000 (07:10 +0000)
committerhannes <hannes>
Thu, 8 Jan 2004 07:10:59 +0000 (07:10 +0000)
tests/mpls-ldp-hello.out [new file with mode: 0644]
tests/mpls-ldp-hello.pcap [new file with mode: 0644]
tests/mpls-ldp-hello.sh [new file with mode: 0755]

diff --git a/tests/mpls-ldp-hello.out b/tests/mpls-ldp-hello.out
new file mode 100644 (file)
index 0000000..db21750
--- /dev/null
@@ -0,0 +1,9 @@
+IP (tos 0xc0, ttl   1, id 15579, offset 0, flags [none], length: 70) 10.1.1.3.646 > 224.0.0.2.646: [udp sum ok] 
+       LDP, Label-Space-ID: 10.1.0.2:0, length: 42
+         Hello Message (0x0100), length: 28, Message ID: 0x00011970, Flags: [ignore if unknown]
+           Common Hello Parameters TLV (0x0400), length: 4, Flags: [ignore and don't forward if unknown]
+             Hold Time: 15s, Flags: [Link Hello]
+           IPv4 Transport Address TLV (0x0401), length: 4, Flags: [ignore and don't forward if unknown]
+             IPv4 Transport Address: 10.1.0.2
+           Configuration Sequence Number TLV (0x0402), length: 4, Flags: [ignore and don't forward if unknown]
+             Sequence Number: 1
diff --git a/tests/mpls-ldp-hello.pcap b/tests/mpls-ldp-hello.pcap
new file mode 100644 (file)
index 0000000..a4a42b7
Binary files /dev/null and b/tests/mpls-ldp-hello.pcap differ
diff --git a/tests/mpls-ldp-hello.sh b/tests/mpls-ldp-hello.sh
new file mode 100755 (executable)
index 0000000..d8c01a7
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+echo -n test mpls-ldp-hello ...
+if (../tcpdump -t -n -v -r mpls-ldp-hello.pcap | diff - mpls-ldp-hello.out)
+then
+       echo passed.
+else
+       echo failed.
+fi
+       
+