]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: add auto-dependencies for ipv4 icmp
authorFlorian Westphal <fw@strlen.de>
Tue, 8 Dec 2020 14:49:42 +0000 (15:49 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 9 Dec 2020 17:33:53 +0000 (18:33 +0100)
commit98b871512c4677848a12e8204fe35eb870660304
tree797ec078c8875b6e33fda15a94c9dfa86f73df22
parente63f067f597d1129b3fff91d2404701de90226d1
src: add auto-dependencies for ipv4 icmp

The ICMP header has field values that are only exist
for certain types.

Mark the icmp proto 'type' field as a nextheader field
and add a new th description to store the icmp type
dependency.  This can later be re-used for other protocol
dependend definitions such as mptcp options -- which are all share the
same tcp option number and have a special 4 bit marker inside the
mptcp option space that tells how the remaining option looks like.

Signed-off-by: Florian Westphal <fw@strlen.de>
include/payload.h
include/proto.h
src/evaluate.c
src/payload.c
src/proto.c