]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Simplify prohibition of listen and accept for connectionless sockets
authorYing Xue <ying.xue@windriver.com>
Wed, 6 Jul 2011 10:01:13 +0000 (06:01 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 18 Sep 2011 02:55:12 +0000 (22:55 -0400)
commit7ff777830115ef62e810b7b8235c406ffc12044c
tree99d98e46ab9cb8bdfaf994b3faeda2239fe1b789
parentbbc59ac5b971a78bae0983527fa289cc69dac874
tipc: Simplify prohibition of listen and accept for connectionless sockets

Modifies the proto_ops structure used by TIPC DGRAM and RDM sockets
so that calls to listen() and accept() are handled by existing kernel
"unsupported operation" routines, and eliminates the related checks
in the listen and accept routines used by SEQPACKET and STREAM sockets
that are no longer needed.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c