]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft-shared: Simplify using nft_create_match()
authorPhil Sutter <phil@nwl.cc>
Thu, 16 Feb 2023 21:24:16 +0000 (22:24 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 17 Feb 2023 17:18:48 +0000 (18:18 +0100)
commite69c2b467d7567027db14d48570fe277495ed52f
treec5b887ac2312c2623a7bb4c32146e3a6d4f5acd6
parent073d4deddd8f3fc5b6c0b6e62b28f5b1895974b1
nft-shared: Simplify using nft_create_match()

Perform the nft_family_ops::parse_match call from inside
nft_create_match(). It frees callers from having to access the match
itself.
Then return a pointer to match data instead of the match itself.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-shared.c