diff options
author | 2022-09-06 17:20:35 +0200 | |
---|---|---|
committer | 2022-09-07 16:46:04 +0200 | |
commit | c92c27171040554cfda7a3fc925e9dbcb5b4a698 (patch) | |
tree | 59d7fc3e6dbecbee86cb99add3454a1f999f5047 /include/net/act_api.h | |
parent | netfilter: move from strlcpy with unused retval to strscpy (diff) | |
download | wireguard-linux-c92c27171040554cfda7a3fc925e9dbcb5b4a698.tar.xz wireguard-linux-c92c27171040554cfda7a3fc925e9dbcb5b4a698.zip |
netfilter: nat: move repetitive nat port reserve loop to a helper
Almost all nat helpers reserve an expecation port the same way:
Try the port inidcated by the peer, then move to next port if that
port is already in use.
We can squash this into a helper.
Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/net/act_api.h')
0 files changed, 0 insertions, 0 deletions