]> 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)
commit33e1f925c788b25b6ad3d0fe53d178a6e9dd2aea
tree99d98e46ab9cb8bdfaf994b3faeda2239fe1b789
parentc7b63851457219f1d4d5fd8abc9f1948f6991eb9
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