net: netfilter: add bpf_ct_set_nat_info kfunc helper
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 21 Sep 2022 16:48:26 +0000 (18:48 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 22 Sep 2022 02:25:26 +0000 (19:25 -0700)
commit0fabd2aa199faeb8754aee94658f2c48ccb2c8c3
tree50d99f56ee0ad3282cc0abe966ffd83b46c17aae
parenteed807f626101f6a4227bd53942892c5983b95a7
net: netfilter: add bpf_ct_set_nat_info kfunc helper

Introduce bpf_ct_set_nat_info kfunc helper in order to set source and
destination nat addresses/ports in a new allocated ct entry not inserted
in the connection tracking table yet.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/9567db2fdfa5bebe7b7cc5870f7a34549418b4fc.1663778601.git.lorenzo@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/netfilter/nf_conntrack_bpf.c