diff options
author | Phil Sutter <phil@nwl.cc> | 2019-01-14 20:41:35 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-01-18 17:02:33 +0300 |
commit | 75dd48e2e420a3cbbe56dd7adfcc6f142c948272 (patch) | |
tree | b4a754c639f47db6c004955442e90ed1c444c22c /net/netfilter/nf_conntrack_proto_udp.c | |
parent | 8e2f311a68494a6677c1724bdcb10bada21af37c (diff) | |
download | linux-75dd48e2e420a3cbbe56dd7adfcc6f142c948272.tar.xz |
netfilter: nf_tables: Support RULE_ID reference in new rule
To allow for a batch to contain rules in arbitrary ordering, introduce
NFTA_RULE_POSITION_ID attribute which works just like NFTA_RULE_POSITION
but contains the ID of another rule within the same batch. This helps
iptables-nft-restore handling dumps with mixed insert/append commands
correctly.
Note that NFTA_RULE_POSITION takes precedence over
NFTA_RULE_POSITION_ID, so if the former is present, the latter is
ignored.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_proto_udp.c')
0 files changed, 0 insertions, 0 deletions