All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rémi Denis-Courmont" <rdenis@simphalempin.com>
To: dccp@vger.kernel.org
Subject: Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM
Date: Wed, 14 May 2008 17:47:40 +0000	[thread overview]
Message-ID: <200805142047.40726.rdenis@simphalempin.com> (raw)
In-Reply-To: <20080513072853.GB4514@gerrit.erg.abdn.ac.uk>

Le Tuesday 13 May 2008 22:14:07 Ulrich Drepper, vous avez écrit :
> Rémi Denis-Courmont wrote:
> > In any case, getaddrinfo() should be patched to
> > [...]
>
> What should be the behavior is socktype and protocol are zero?  Should
> these two types be returned by default?  What others?  So far we return
> TCP, UDP, and raw socket information.  I'd rather keep the list short
> but since we already have raw sockets in there (because they are in
> POSIX) I won't reject anything that's more useful than raw sockets.

Well... I've always wondered what the use of both zeroes was supposed to be.

In AI_PASSIVE mode, it makes no sense, since there is no way you can handle 
passive SOCK_STREAM sockets (bind+listen+accept) and "passive" SOCK_DGRAM 
sockets in any common way (bind+recvfrom+sendto).

Even in active mode (connect+send), I cannot figure out how to share 
SOCK_STREAM code with SOCK_DGRAM code, given the incompatible end-of-file and 
datagram boundaries semantics (or lack thereof).

Hence, it seems that both zeroes is only of use to enumerate the supported 
protocol (yeah right...). If that's so adding DCCP and even UDP-Lite would be 
OK, even though they are corner-case protocols. Do you intend to 
implement "dccp" when parsing /etc/services, though?

Frankly, I have no definite answer, and I'm not any kind of standard body to 
make one in the first place :P

-- 
Rémi Denis-Courmont
http://www.remlab.net/

WARNING: multiple messages have this Message-ID (diff)
From: "Rémi Denis-Courmont" <rdenis@simphalempin.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Gerrit Renker <gerrit@erg.abdn.ac.uk>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	David Stevens <dlstevens@us.ibm.com>,
	David Miller <davem@davemloft.net>,
	dccp@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM
Date: Wed, 14 May 2008 20:47:40 +0300	[thread overview]
Message-ID: <200805142047.40726.rdenis@simphalempin.com> (raw)
In-Reply-To: <4829E87F.1070006@redhat.com>

Le Tuesday 13 May 2008 22:14:07 Ulrich Drepper, vous avez écrit :
> Rémi Denis-Courmont wrote:
> > In any case, getaddrinfo() should be patched to
> > [...]
>
> What should be the behavior is socktype and protocol are zero?  Should
> these two types be returned by default?  What others?  So far we return
> TCP, UDP, and raw socket information.  I'd rather keep the list short
> but since we already have raw sockets in there (because they are in
> POSIX) I won't reject anything that's more useful than raw sockets.

Well... I've always wondered what the use of both zeroes was supposed to be.

In AI_PASSIVE mode, it makes no sense, since there is no way you can handle 
passive SOCK_STREAM sockets (bind+listen+accept) and "passive" SOCK_DGRAM 
sockets in any common way (bind+recvfrom+sendto).

Even in active mode (connect+send), I cannot figure out how to share 
SOCK_STREAM code with SOCK_DGRAM code, given the incompatible end-of-file and 
datagram boundaries semantics (or lack thereof).

Hence, it seems that both zeroes is only of use to enumerate the supported 
protocol (yeah right...). If that's so adding DCCP and even UDP-Lite would be 
OK, even though they are corner-case protocols. Do you intend to 
implement "dccp" when parsing /etc/services, though?

Frankly, I have no definite answer, and I'm not any kind of standard body to 
make one in the first place :P

-- 
Rémi Denis-Courmont
http://www.remlab.net/

  parent reply	other threads:[~2008-05-14 17:47 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13  7:28 [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM Gerrit Renker
2008-05-13  7:28 ` Gerrit Renker
2008-05-13  7:39 ` David Miller
2008-05-13  7:39   ` David Miller
2008-05-13  9:37 ` Gerrit Renker
2008-05-13  9:37   ` Gerrit Renker
2008-05-13 13:46 ` Gerrit Renker
2008-05-13 13:46   ` Gerrit Renker
2008-05-13 15:50 ` David Stevens
2008-05-13 15:50   ` David Stevens
2008-05-13 16:23 ` Arnaldo Carvalho de Melo
2008-05-13 16:23   ` Arnaldo Carvalho de Melo
2008-05-13 16:59 ` David Stevens
2008-05-13 16:59   ` David Stevens
2008-05-13 17:03 ` Gerrit Renker
2008-05-13 17:03   ` Gerrit Renker
2008-05-13 17:06 ` Rémi Denis-Courmont
2008-05-13 17:06   ` Rémi Denis-Courmont
2008-05-13 17:33 ` Arnaldo Carvalho de Melo
2008-05-13 17:33   ` Arnaldo Carvalho de Melo
2008-05-13 17:34 ` Arnaldo Carvalho de Melo
2008-05-13 17:34   ` Arnaldo Carvalho de Melo
2008-05-13 17:37 ` Rémi Denis-Courmont
2008-05-13 17:37   ` Rémi Denis-Courmont
2008-05-13 17:50 ` Arnaldo Carvalho de Melo
2008-05-13 17:50   ` Arnaldo Carvalho de Melo
2008-05-13 17:53 ` Arnaldo Carvalho de Melo
2008-05-13 17:53   ` Arnaldo Carvalho de Melo
2008-05-13 19:14 ` Ulrich Drepper
2008-05-13 19:14   ` Ulrich Drepper
2008-05-13 22:34 ` David Miller
2008-05-13 22:34   ` David Miller
2008-05-14  8:09 ` Gerrit Renker
2008-05-14  8:09   ` Gerrit Renker
2008-05-14 14:06 ` Ulrich Drepper
2008-05-14 14:06   ` Ulrich Drepper
2008-05-14 14:45 ` Gerrit Renker
2008-05-14 14:45   ` Gerrit Renker
2008-05-14 16:06 ` Ulrich Drepper
2008-05-14 16:06   ` Ulrich Drepper
2008-05-14 17:22 ` Gerrit Renker
2008-05-14 17:22   ` Gerrit Renker
2008-05-14 17:39 ` Sridhar Samudrala
2008-05-14 17:39   ` Sridhar Samudrala
2008-05-14 17:43 ` Ulrich Drepper
2008-05-14 17:43   ` Ulrich Drepper
2008-05-14 17:47 ` Rémi Denis-Courmont [this message]
2008-05-14 17:47   ` Rémi Denis-Courmont
2008-05-14 17:49 ` Rémi Denis-Courmont
2008-05-14 17:49   ` Rémi Denis-Courmont
2008-05-14 17:57 ` Ulrich Drepper
2008-05-14 17:57   ` Ulrich Drepper
2008-05-14 18:00 ` Gerrit Renker
2008-05-14 18:00   ` Gerrit Renker
2008-05-14 18:06 ` Ulrich Drepper
2008-05-14 18:06   ` Ulrich Drepper
2008-05-14 18:07 ` Ulrich Drepper
2008-05-14 18:07   ` Ulrich Drepper
  -- strict thread matches above, loose matches on Subject: below --
2008-05-13 12:53 [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SO Remi Denis-Courmont
2008-05-13 12:53 ` [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM Remi Denis-Courmont

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=200805142047.40726.rdenis@simphalempin.com \
    --to=rdenis@simphalempin.com \
    --cc=dccp@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.