netfilter: nftables: add helper function to set the base sequence number
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Mar 2021 22:18:02 +0000 (00:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 31 Mar 2021 20:34:11 +0000 (22:34 +0200)
commit802b805162a1b7d8391c40ac8a878e9e63287aff
treecffed5609f9c240fdf1bc99b81c7c7f145ae9a17
parent7726c9ce71b047924ee55fe87b5cc10a8714d120
netfilter: nftables: add helper function to set the base sequence number

This patch adds a helper function to calculate the base sequence number
field that is stored in the nfnetlink header. Use the helper function
whenever possible.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c