]> git.ipfire.org Git - thirdparty/nftables.git/commit
payload: automatically kill dependencies for exthdr and tcpopt
authorManuel Messner <mm@skelett.io>
Tue, 7 Feb 2017 02:14:14 +0000 (03:14 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 12 Feb 2017 14:34:47 +0000 (15:34 +0100)
commit055e1d6d343cb6a39938d6660c3fc66f242c7e7f
treee76c14021c444aec58c8fb522edae8b3940e062a
parentc17509c6d1948f28f8cda71fef79447ec273573d
payload: automatically kill dependencies for exthdr and tcpopt

This patch automatically removes the dependencies for exthdr and tcpopt.

 # nft add rule filter input tcp option maxseg kind 3 counter.
 # nft list table filter input

Before:
 # ip protocol 6 tcp option maxseg kind 3 counter

After:
 # tcp option maxseg kind 3 counter

Thus allowing to write tests as follows:
 # tcp option maxseg kind 3;ok

Signed-off-by: Manuel Messner <mm@skelett.io>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/payload.h
src/netlink_delinearize.c
src/payload.c