* [PATCH net-next] ipv6: use ipv6_iface_scope_id in conntrack to return scope id
@ 2013-03-12 21:21 Hannes Frederic Sowa
2013-03-15 11:48 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Frederic Sowa @ 2013-03-12 21:21 UTC (permalink / raw)
To: netfilter-devel; +Cc: yoshfuji, netdev, pablo
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
---
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
index 2b6c226..97bcf2b 100644
--- a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
+++ b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
@@ -330,12 +330,8 @@ ipv6_getorigdst(struct sock *sk, int optval, void __user *user, int *len)
sizeof(sin6.sin6_addr));
nf_ct_put(ct);
-
- if (ipv6_addr_type(&sin6.sin6_addr) & IPV6_ADDR_LINKLOCAL)
- sin6.sin6_scope_id = sk->sk_bound_dev_if;
- else
- sin6.sin6_scope_id = 0;
-
+ sin6.sin6_scope_id = ipv6_iface_scope_id(&sin6.sin6_addr,
+ sk->sk_bound_dev_if);
return copy_to_user(user, &sin6, sizeof(sin6)) ? -EFAULT : 0;
}
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] ipv6: use ipv6_iface_scope_id in conntrack to return scope id
2013-03-12 21:21 [PATCH net-next] ipv6: use ipv6_iface_scope_id in conntrack to return scope id Hannes Frederic Sowa
@ 2013-03-15 11:48 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-03-15 11:48 UTC (permalink / raw)
To: netfilter-devel, yoshfuji, netdev
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-15 11:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 21:21 [PATCH net-next] ipv6: use ipv6_iface_scope_id in conntrack to return scope id Hannes Frederic Sowa
2013-03-15 11:48 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).