netfilter: ipv6: only provide sk_bound_dev_if for link-local addr
authorFlorian Westphal <fw@strlen.de>
Tue, 13 Nov 2012 00:17:24 +0000 (00:17 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 13 Nov 2012 12:42:29 +0000 (13:42 +0100)
commitd3976a53ce1f4763cb910d047e8763e4c696e5f7
tree4af5b4eee5b9ea1db5661b234e7f0910bfb260f3
parent121d1e0941e05c64ee4223064dd83eb24e871739
netfilter: ipv6: only provide sk_bound_dev_if for link-local addr

yoshfuji points out that sk_bound_dev_if should only be provided
for link-local addresses.

IPv6 getpeer/sockname also has this test, i.e. we will now
only set sin6_scope_id if the original(!) destination
was a link-local address.

Reported-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c