diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 15:16:59 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-24 11:24:14 +0200 |
commit | 8da04ffdca1931402a6bc22c43c1a2fa1c6f1e14 (patch) | |
tree | 0da5d47d5f8d071c79ba0817c2a2be5dcf4f4bb2 /extensions/libxt_MARK.man | |
parent | b686594b976ddbfb1809ecfe016784bb53bbe9ac (diff) |
Share print_ipv{4,6}_addr() from xtables
These functions contain code which occurs in legacy's print_firewall()
functions, so use them there.
Rename them to at least make clear they print more than a single
address.
Also introduce ipv{4,6}_addr_to_string() which take care of converting
an address/netmask pair into string representation in a way which
doesn't upset covscan (since that didn't detect that 'buf' may not be
exceeded by the strings written into it.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libxt_MARK.man')
0 files changed, 0 insertions, 0 deletions