]> The Tcpdump Group git mirrors - tcpdump/commitdiff
OpenFlow: Add a test capture file
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 24 Oct 2019 15:50:29 +0000 (15:50 +0000)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 24 Oct 2019 15:50:29 +0000 (15:50 +0000)
This capture file triggered a buffer over-read with the 4.9.2 release
and was fixed in the 4.9.3 release.

The problem was fixed in master branch by commit
ad69daa2e4cf9ce6789295bd7f55a55ac4d9d0b2.

Update the output of the test accordingly.

Partial update from 1ccaff37644f88949c9f45a3781082cdfa720856
in 4.9 branch.

tests/TESTLIST
tests/of10_7050sx_bsn-oobr.out [new file with mode: 0644]
tests/of10_7050sx_bsn-oobr.pcap [new file with mode: 0644]

index 8bf062cf6145f4a68d8323cf34201b8267cee1b6..dc681c13ef686e5e1644b615a939f8f77f3af922 100644 (file)
@@ -234,6 +234,7 @@ of10_s4810-vvvv     of10_s4810.pcap         of10_s4810-vvvv.out     -vvvv
 of10_pf5240-vv of10_pf5240.pcap        of10_pf5240-vv.out      -vv
 of10_7050q-v   of10_7050q.pcapng       of10_7050q-v.out        -v
 of10_7050sx_bsn-vv     of10_7050sx_bsn.pcap            of10_7050sx_bsn-vv.out  -vv
 of10_pf5240-vv of10_pf5240.pcap        of10_pf5240-vv.out      -vv
 of10_7050q-v   of10_7050q.pcapng       of10_7050q-v.out        -v
 of10_7050sx_bsn-vv     of10_7050sx_bsn.pcap            of10_7050sx_bsn-vv.out  -vv
+of10_7050sx_bsn-oobr of10_7050sx_bsn-oobr.pcap of10_7050sx_bsn-oobr.out -v
 
 # GeoNetworking and CALM FAST tests
 geonet-calm-fast       geonet_and_calm_fast.pcap       geonet_and_calm_fast.out        -vv
 
 # GeoNetworking and CALM FAST tests
 geonet-calm-fast       geonet_and_calm_fast.pcap       geonet_and_calm_fast.out        -vv
diff --git a/tests/of10_7050sx_bsn-oobr.out b/tests/of10_7050sx_bsn-oobr.out
new file mode 100644 (file)
index 0000000..93d897a
--- /dev/null
@@ -0,0 +1,16 @@
+    1  16:11:54.505352 IP (tos 0x0, ttl 64, id 60713, offset 0, flags [DF], proto TCP (6), length 562)
+    109.74.202.168.6653 > 88.150.169.52.4756: Flags [P.], seq 3422281781:3422282291, ack 774258090, win 252, options [nop,nop,TS val 590230876 ecr 50526785], length 510: OpenFlow
+       version 1.0, type VENDOR, length 24, xid 0x0000001a, vendor 0x005c16c7 (Big Switch Networks)
+        subtype SET_IP_MASK, index 1, mask 255.0.14.0
+       version 1.0, type VENDOR, length 24, xid 0x0000001b, vendor 0x005c16c7 (Big Switch Networks)
+        subtype SET_IP_MASK, index 2, mask 255.0.28.0
+       version 1.0, type VENDOR, length 24, xid 0x0000001c, vendor 0x005c16c7 (Big Switch Networks)
+        subtype SET_IP_MASK, index 3, mask 255.0.56.0
+       version 1.0, type VENDOR, length 24, xid 0x0000001d, vendor 0x005c16c7 (Big Switch Networks)
+        subtype SET_IP_MASK, index 4, mask 255.0.112.0
+       version 1.0, type VENDOR, length 24, xid 0x0000001e, vendor 0x005c16c7 (Big Switch Networks)
+        subtype SET_IP_MASK, index 5, mask 255.0.224.0
+       version 1.0, type VENDOR, length 24, xid 0x0000001f, vendor 0x005c16c7 (Big Switch Networks)
+        subtype GET_IP_MASK_REQUEST, index 3
+       version 1.0, type VENDOR, length 30, xid 0x00000020, vendor 0x005c16c7 (Big Switch Networks)
+        subtype SHELL_COMMAND, service 0, data 'show cloc' [|openflow]
diff --git a/tests/of10_7050sx_bsn-oobr.pcap b/tests/of10_7050sx_bsn-oobr.pcap
new file mode 100644 (file)
index 0000000..a564248
Binary files /dev/null and b/tests/of10_7050sx_bsn-oobr.pcap differ