And the similar keywords about packets and bytes of a flow
--- /dev/null
+Test
+====
+
+Test `flow.pkts_toclient` and alike (bytes, server) keywords
+
+PCAP
+====
+
+Pcap found in the Bro github https://github.com/bro/bro/blob/master/testing/btest/Traces/tunnels/Teredo.pcap
+
--- /dev/null
+alert ip any any -> any any (msg:"Flow has 10 packets"; flow.pkts_toclient:10; flow.pkts_toserver:10; flow.bytes_toserver:<3000; flow.bytes_toclient:>8000; sid:1;)
--- /dev/null
+requires:
+ min-version: 7
+
+pcap: ../decode-teredo-01/input.pcap
+
+args:
+- -k none
+
+checks:
+- filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1