]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-arp: Use xtables_ipparse_multiple()
authorPhil Sutter <phil@nwl.cc>
Fri, 25 Oct 2019 16:02:52 +0000 (18:02 +0200)
committerPhil Sutter <phil@nwl.cc>
Sat, 26 Oct 2019 19:09:03 +0000 (21:09 +0200)
commitfd0bb3f4b024e91044ae7cb7707d946504eae42f
tree68a28574d7430fdb40d3b5569c98f2a3c49cfac3
parent9376c42a59929031610ea70d2fc6347fbfa46e67
xtables-arp: Use xtables_ipparse_multiple()

Use the same code for parsing source and destination IP addresses as
iptables and drop all the local functions dealing with that.

While being at it, call free() for 'saddrs' and 'daddrs' unconditionally
(like iptables does), they are NULL if not used.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
iptables/xtables-arp.c