]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add test file for a previous fix
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 24 Oct 2015 12:04:58 +0000 (14:04 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:38 +0000 (09:16 +0100)
Fix was: "RSVP: Fix an infinite loop"
(commit d7d269e8c67b6e8262db27bb92ae524aa3c3f439)

tests/TESTLIST
tests/rsvp-inf-loop-2-v.out [new file with mode: 0644]
tests/rsvp-inf-loop-2.pcap [new file with mode: 0644]

index c1e6367f547cef9b94d60ee554401dea3b2152be..8d281ca743cd5d0d6177a73ce84ca338bf062314 100644 (file)
@@ -240,6 +240,8 @@ isis_poi2-v     isis_poi2.pcap                  isis_poi2.out           -t -v
 
 # RSVP tests
 rsvp_infloop-v rsvp-infinite-loop.pcap         rsvp_infloop-v.out      -t -v
+# fuzzed pcap
+rsvp-inf-loop-2-v rsvp-inf-loop-2.pcap rsvp-inf-loop-2-v.out -t -v
 
 # HDLC tests
 hdlc1  chdlc-slarp.pcap        hdlc1.out       -t
diff --git a/tests/rsvp-inf-loop-2-v.out b/tests/rsvp-inf-loop-2-v.out
new file mode 100644 (file)
index 0000000..79bd6a7
--- /dev/null
@@ -0,0 +1,16 @@
+IP (tos 0x0, ttl 254, id 0, offset 0, flags [none], proto RSVP (46), length 268, options (RA))
+    10.31.0.1 > 10.33.0.1: 
+       RSVPv1 Path Message (1), Flags: [none], length: 244, ttl: 254, checksum: 0x0ca3
+         Session Object (1) Flags: [reject if unknown], Class-Type: Tunnel IPv4 (7), length: 16
+           IPv4 Tunnel EndPoint: 10.33.0.1, Tunnel ID: 0x0004, Extended Tunnel ID: 10.31.0.1
+         RSVP Hop Object (3) Flags: [reject if unknown], Class-Type: IPv4 (1), length: 12
+           Previous/Next Interface: 10.1.2.1, Logical Interface Handle: 0x98006700
+         Time Values Object (5) Flags: [reject if unknown], Class-Type: 1 (1), length: 8
+           Refresh Period: 30000ms
+         ERO Object (20) Flags: [reject if unknown], Class-Type: IPv4 (1), length: 36
+           Subobject Type: IPv4 prefix, length 8, Strict, 10.1.2.2/32, Flags: [none]
+           Subobject Type: IPv4 prefix, length 8, Strict, 10.2.3.2/70, Flags: [none]
+           Subobject Type: IPv4 prefix, length 8, Strict, 10.2.65.3/32, Flags: [none]
+           Subobject Type: IPv4 prefix, length 8, Strict, 10.33.0.1/32, Flags: [none]
+         Generalized UNI Object (229) Flags: [ignore and forward if unknown], Class-Type: 1 (1), length: 8
+           Subobject Type: Unknown (8), AF: Reserved (0), length: 0 (invalid)
diff --git a/tests/rsvp-inf-loop-2.pcap b/tests/rsvp-inf-loop-2.pcap
new file mode 100644 (file)
index 0000000..e2caa2a
Binary files /dev/null and b/tests/rsvp-inf-loop-2.pcap differ