Netdev List
 help / color / mirror / Atom feed
From: James Morris <jmorris@namei.org>
To: gerrit@erg.abdn.ac.uk
Cc: netdev@vger.kernel.org, davem@davemloft.net,
	yoshfuji@linux-ipv6.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCHv2 2.6.17] net/ipv6/udp.c: remove duplicate udp_get_port code
Date: Thu, 17 Aug 2006 10:56:40 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0608171054560.19149@d.namei> (raw)
In-Reply-To: <200608171325.47349@strip-the-willow>

On Thu, 17 Aug 2006, gerrit@erg.abdn.ac.uk wrote:

> -			if (inet2->num == snum &&
> -			    sk2 != sk &&
> -			    !ipv6_only_sock(sk2) &&
> -			    (!sk2->sk_bound_dev_if ||
> -			     !sk->sk_bound_dev_if ||
> -			     sk2->sk_bound_dev_if == sk->sk_bound_dev_if) &&


> +		sk_for_each(sk2, node, head)
> +			if (inet_sk(sk2)->num == snum                        &&
> +			    sk2 != sk                                        &&
> +			    (!sk2->sk_reuse        || !sk->sk_reuse)         &&
> +			    (!sk2->sk_bound_dev_if || !sk->sk_bound_dev_if
> +			     || sk2->sk_bound_dev_if == sk->sk_bound_dev_if) &&


Doesn't this change the behavior for IPV6_V6ONLY sockets ?


- James
-- 
James Morris
<jmorris@namei.org>

  reply	other threads:[~2006-08-17 14:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17 12:25 [PATCHv2 2.6.17] net/ipv6/udp.c: remove duplicate udp_get_port code gerrit
2006-08-17 14:56 ` James Morris [this message]
2006-08-17 15:18   ` YOSHIFUJI Hideaki / 吉藤英明
2006-08-27  3:07 ` David Miller

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=Pine.LNX.4.64.0608171054560.19149@d.namei \
    --to=jmorris@namei.org \
    --cc=davem@davemloft.net \
    --cc=gerrit@erg.abdn.ac.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.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