netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
To: davem@davemloft.net
Cc: suresh.krishnan@ericsson.ca, netdev@oss.sgi.com, yoshfuji@linux-ipv6.org
Subject: Re: [PATCH 2.6.9] address family not supported for sendmsg()
Date: Fri, 22 Oct 2004 15:30:56 +0900 (JST)	[thread overview]
Message-ID: <20041022.153056.57690221.yoshfuji@linux-ipv6.org> (raw)
In-Reply-To: <20041021225820.72d278c7.davem@davemloft.net>

In article <20041021225820.72d278c7.davem@davemloft.net> (at Thu, 21 Oct 2004 22:58:20 -0700), "David S. Miller" <davem@davemloft.net> says:

> On Fri, 22 Oct 2004 00:27:14 -0400 (EDT)
> Suresh Krishnan <suresh.krishnan@ericsson.ca> wrote:
> 
> > --- linux-2.6.9/net/ipv6/udp.c  2004-10-18 17:54:55.000000000 -0400
> > +++ linux-2.6.9-patched/net/ipv6/udp.c  2004-10-21 16:37:52.000000000 -0400
> > @@ -699,7 +699,7 @@
> >                 if (likely(up->pending)) {
> >                         if (unlikely(up->pending != AF_INET6)) {
> >                                 release_sock(sk);
> > -                               return -EINVAL;
> > +                               return -EAFNOSUPPORT;
> 
> I think this case should remain -EINVAL.

EAFNOSUPPORT may be okay.

If we try to push data for ipv6 socket
while data is pending for ipv4 destination,
the family of destination (ipv6) is not allowed for that socket.
This may be convered by EAFNOSUPPORT.

--yoshfuji

  reply	other threads:[~2004-10-22  6:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22  4:27 [PATCH 2.6.9] address family not supported for sendmsg() Suresh Krishnan
2004-10-22  5:58 ` David S. Miller
2004-10-22  6:30   ` YOSHIFUJI Hideaki / 吉藤英明 [this message]
2004-10-22  6:31     ` YOSHIFUJI Hideaki / 吉藤英明
2004-10-23  0:07       ` Suresh Krishnan
2004-10-23  5:29         ` David S. 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=20041022.153056.57690221.yoshfuji@linux-ipv6.org \
    --to=yoshfuji@linux-ipv6.org \
    --cc=davem@davemloft.net \
    --cc=netdev@oss.sgi.com \
    --cc=suresh.krishnan@ericsson.ca \
    /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).