From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
To: netdev@vger.kernel.org, David Miller <davem@davemloft.net>
Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Subject: Re: [PATCH net-next v3 4/4] ipv6: report sin6_scope_id if sockopt RECVORIGDSTADDR is set
Date: Fri, 08 Mar 2013 11:09:40 +0900 [thread overview]
Message-ID: <51394864.3070009@linux-ipv6.org> (raw)
In-Reply-To: <20130307210540.GA23781@order.stressinduktion.org>
Hannes Frederic Sowa wrote:
> Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.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@linux-ipv6.org>
prev parent reply other threads:[~2013-03-08 2:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 21:05 [PATCH net-next v3 4/4] ipv6: report sin6_scope_id if sockopt RECVORIGDSTADDR is set Hannes Frederic Sowa
2013-03-08 2:09 ` YOSHIFUJI Hideaki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51394864.3070009@linux-ipv6.org \
--to=yoshfuji@linux-ipv6.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).