aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/nf_tproxy_ipv4.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-05-31 18:27:05 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-02 18:06:26 -0700
commitd519e8708b06a6ec9e6d7f67175649fd624558f5 (patch)
treeb79984c3cb4d3e6830b48c857d1daf1c4859a087 /net/ipv4/netfilter/nf_tproxy_ipv4.c
parentnet: inetdevice: provide replacement iterators for in_ifaddr walk (diff)
downloadlinux-dev-d519e8708b06a6ec9e6d7f67175649fd624558f5.tar.xz
linux-dev-d519e8708b06a6ec9e6d7f67175649fd624558f5.zip
devinet: use in_dev_for_each_ifa_rcu in more places
This also replaces spots that used for_primary_ifa(). for_primary_ifa() aborts the loop on the first secondary address seen. Replace it with either the rcu or rtnl variant of in_dev_for_each_ifa(), but two places will now also consider secondary addresses too: inet_addr_onlink() and inet_ifa_byprefix(). I do not understand why they should ignore secondary addresses. Why would a secondary address not be considered 'on link'? When matching a prefix, why ignore a matching secondary address? Other places get converted as well, but gain "->flags & SECONDARY" check. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/nf_tproxy_ipv4.c')
0 files changed, 0 insertions, 0 deletions