]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_hook: use the sequence number of the request message
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 Aug 2021 23:27:19 +0000 (01:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Aug 2021 15:07:40 +0000 (17:07 +0200)
commitf1d2ac575165c8b9fcfd65e7defb97e1bd00e5ba
treed801c15f0a46047b230a9c0823e6c17b7d7ff6d7
parent74b2d98c33151c3376c3b4b8f45616b3e113f54d
netfilter: nfnetlink_hook: use the sequence number of the request message

The sequence number allows to correlate the netlink reply message (as
part of the dump) with the original request message.

The cb->seq field is internally used to detect an interference (update)
of the hook list during the netlink dump, do not use it as sequence
number in the netlink dump header.

Fixes: 4d45a1287f09 ("netfilter: add new hook nfnl subsystem")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_hook.c