[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <513A1232.7040707@linux-ipv6.org>
Date: Sat, 09 Mar 2013 01:30:42 +0900
From: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
To: netdev@...r.kernel.org, David Miller <davem@...emloft.net>,
YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
Subject: Re: [PATCH net-next v4 4/4] ipv6: report sin6_scope_id if sockopt
RECVORIGDSTADDR is set
Hannes Frederic Sowa wrote:
> v4:
> a) unchanged
>
> Cc: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
> Acked-by: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
> Signed-off-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
> ---
> net/ipv6/datagram.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c
> index b55e70a..4b56cbb 100644
> --- a/net/ipv6/datagram.c
> +++ b/net/ipv6/datagram.c
> @@ -594,7 +594,9 @@ int ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
> sin6.sin6_addr = ipv6_hdr(skb)->daddr;
> sin6.sin6_port = ports[1];
> sin6.sin6_flowinfo = 0;
> - sin6.sin6_scope_id = 0;
> + sin6.sin6_scope_id =
> + ipv6_iface_scope_id(&ipv6_hdr(skb)->daddr,
> + opt->iif);
>
> put_cmsg(msg, SOL_IPV6, IPV6_ORIGDSTADDR, sizeof(sin6), &sin6);
> }
>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@...ux-ipv6.org>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists