--- /dev/null
+# Test Description
+
+Contributed by Hans Vermeer
+
+Verify that `stream.checksum-validation` setting does not affect csum validation keyword checks.
+
+This test enables `stream.checksum-validation`
+
+## PCAP
+
+Contributed by Hans Vermeer
--- /dev/null
+alert tcp any any -> any any (msg:"SURICATA TCPv4 invalid checksum"; tcpv4-csum:invalid; classtype:protocol-command-decode; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+- --set stream.checksum-validation=yes
+
+checks:
+- filter:
+ count: 1
+ match:
+ alert.action: allowed
+ alert.category: Generic Protocol Command Decode
+ alert.gid: 1
+ alert.severity: 3
+ alert.signature: SURICATA TCPv4 invalid checksum
+ alert.signature_id: 1
+ dest_ip: 209.85.225.105
+ dest_port: 80
+ direction: to_server
+ event_type: alert
+ flow.bytes_toclient: 0
+ flow.bytes_toserver: 74
+ flow.dest_ip: 209.85.225.105
+ flow.dest_port: 80
+ flow.pkts_toclient: 0
+ flow.pkts_toserver: 1
+ flow.src_ip: 192.168.2.3
+ flow.src_port: 39867
+ pcap_cnt: 1
+ proto: TCP
+ src_ip: 192.168.2.3
+ src_port: 39867
--- /dev/null
+# Test Description
+
+Contributed by Hans Vermeer
+
+Verify that `stream.checksum-validation` setting does not affect csum validation keyword checks.
+
+This test disables `stream.checksum-validation`
+
+## PCAP
+
+Contributed by Hans Vermeer
--- /dev/null
+alert tcp any any -> any any (msg:"SURICATA TCPv4 invalid checksum"; tcpv4-csum:invalid; classtype:protocol-command-decode; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+pcap: ../detect-chksum-01/input.pcap
+
+args:
+- --set stream.checksum-validation=no
+
+checks:
+- filter:
+ count: 1
+ match:
+ alert.action: allowed
+ alert.category: Generic Protocol Command Decode
+ alert.gid: 1
+ alert.severity: 3
+ alert.signature: SURICATA TCPv4 invalid checksum
+ alert.signature_id: 1
+ dest_ip: 209.85.225.105
+ dest_port: 80
+ direction: to_server
+ event_type: alert
+ flow.bytes_toclient: 0
+ flow.bytes_toserver: 74
+ flow.dest_ip: 209.85.225.105
+ flow.dest_port: 80
+ flow.pkts_toclient: 0
+ flow.pkts_toserver: 1
+ flow.src_ip: 192.168.2.3
+ flow.src_port: 39867
+ pcap_cnt: 1
+ proto: TCP
+ src_ip: 192.168.2.3
+ src_port: 39867