[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1277385636.13544.67.camel@yamato.local>
Date: Thu, 24 Jun 2010 15:20:36 +0200
From: Diego Elio “Flameeyes” Pettenò <flameeyes@...il.com>
To: Vlad Yasevich <vladislav.yasevich@...com>
Cc: linux-kernel@...r.kernel.org, linux-sctp@...r.kernel.org
Subject: Re: [PATCH] sctp: implement SIOCINQ ioctl()
Il giorno gio, 24/06/2010 alle 09.19 -0400, Vlad Yasevich ha scritto:
>
> This should add a check for sctp_style(sk, TCP), since one can't read
> from
> a TCP style listening sockets, but can do so from UDP-style
> (SOCK_SEQPACKET).
I don't want to sound arrogant but... are you sure?
I ask because the simple testcase I wrote to make sure I didn't get it
wrong opened the socket as SOCK_STREAM, and yet all of this worked fine
(I'm attaching the source, for the sake of it)...
I sure hope you're mistaken here and it is _supposed_ to work here as
well, as we cannot use SOCK_SEQPACKET in the software I'm writing this
for (feng, from the lscube project) as accept() fails on SOCK_SEQPACKET
(EOPNOTSUPP) -- which itslef is strange given that the man page for
accept(2) reports it's supported on SOCK_STREAM and SOCK_SEQPACKET.
--
Diego Elio Pettenò — “Flameeyes”
http://blog.flameeyes.eu/
If you found a .asc file in this mail and know not what it is,
it's a GnuPG digital signature: http://www.gnupg.org/
View attachment "sctp-fionread.c" of type "text/x-csrc" (2097 bytes)
Powered by blists - more mailing lists