]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add a test that makes unaligned accesses.
authorGuy Harris <[email protected]>
Tue, 25 Aug 2015 18:18:38 +0000 (11:18 -0700)
committerGuy Harris <[email protected]>
Tue, 25 Aug 2015 18:18:38 +0000 (11:18 -0700)
From GitHub issue #478, in which tcpdump crashed on SPARC due to making
an unaligned access.

tests/TESTLIST
tests/unaligned-nfs-1.out [new file with mode: 0644]
tests/unaligned-nfs-1.pcap [new file with mode: 0644]

index 8b3c975e407dff6e3488e1c6cd44917e6455ecdb..b16baf9ba0a2cf7ed4023601dffe42df728b5690 100644 (file)
@@ -301,3 +301,6 @@ 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
+
+# tests with unaligned data, to make sure they work on SPARC
+unaligned-nfs-1        unaligned-nfs-1.pcap    unaligned-nfs-1.out     -t -v -n
diff --git a/tests/unaligned-nfs-1.out b/tests/unaligned-nfs-1.out
new file mode 100644 (file)
index 0000000..e74aa30
--- /dev/null
@@ -0,0 +1,2 @@
+IP (tos 0x0, ttl 63, id 38810, offset 0, flags [DF], proto TCP (6), length 168)
+    128.112.130.130.2049 > 140.180.226.200.1023: Flags [P.], cksum 0x6f82 (correct), seq 271994717:271994833, ack 3625862383, win 12274, options [nop,nop,TS val 801481683 ecr 243357584], length 116: NFS reply xid 3532485149 reply ok 112
diff --git a/tests/unaligned-nfs-1.pcap b/tests/unaligned-nfs-1.pcap
new file mode 100644 (file)
index 0000000..5f12c13
Binary files /dev/null and b/tests/unaligned-nfs-1.pcap differ