doc: adds doc for ipv4.hdr signature keyword

pull/4702/head
Philippe Antoine 5 years ago committed by Victor Julien
parent 1cd314c500
commit 6251deae21

@ -111,6 +111,20 @@ The named variant of that example would be::
ip_proto:PIM ip_proto:PIM
ipv4.hdr
^^^^^^^^
Sticky buffer to match on the whole IPv4 header.
Example rule:
.. container:: example-rule
alert ip any any -> any any (:example-rule-emphasis:`ipv4.hdr; content:"|3A|"; offset:9; depth:1;` sid:1234; rev:5;)
This example looks if byte 9 of IPv4 header has value 3A.
That means that the IPv4 protocol is ICMPv6.
ipv6.hdr ipv6.hdr
^^^^^^^^ ^^^^^^^^

Loading…
Cancel
Save