diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-21 00:37:03 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-28 13:04:56 +0200 |
commit | e189ae161dd784aa5d454b0832f818cacc0e131b (patch) | |
tree | 064fb0aad8ff0703bb3c3f1997dec597ce34e9db /block | |
parent | 339031bafe6b281cf2dcb8364217288b9fdab555 (diff) | |
download | linux-e189ae161dd784aa5d454b0832f818cacc0e131b.tar.gz linux-e189ae161dd784aa5d454b0832f818cacc0e131b.tar.bz2 linux-e189ae161dd784aa5d454b0832f818cacc0e131b.zip |
netfilter: nf_tables: add position handle in event notification
Add position handle to allow to identify the rule location from netlink
events. Otherwise, userspace cannot incrementally update a userspace
cache through monitoring events.
Skip handle dump if the rule has been either inserted (at the beginning
of the ruleset) or appended (at the end of the ruleset), the
NLM_F_APPEND netlink flag is sufficient in these two cases.
Handle NLM_F_REPLACE as NLM_F_APPEND since the rule replacement
expansion appends it after the specified rule handle.
Fixes: 96518518cc41 ("netfilter: add nftables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions