* pkthdr (for matching on packets with decoder events)
There are a couple of additional TCP related protocol options:
@ -133,6 +133,20 @@ is enabled in the configuration file, suricata.yaml.
If you have a signature with the protocol declared as 'http', Suricata makes
sure the signature will only match if the TCP stream contains http traffic.
Matching on non-IP packets
~~~~~~~~~~~~~~~~~~~~~~~~~~
Traditionally the rule language was only about matching on IP packets. For packets
that caused decoder events in the layers before IP a special protocol `pkthdr` was
added.
..container:: example-rule
alert :example-rule-emphasis:`pkthdr` any any -> any any (msg:"SURICATA IPv4 packet too small"; decode-event:ipv4.pkt_too_small; classtype:protocol-command-decode; sid:2200000; rev:2;)
Up until Suricata 8 this protocol was an alias for `alert ip`, but in Suricata 9 it