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)
commit245f3d342dccad293d0cd0bbe231051b2daa695f
tree99d98e46ab9cb8bdfaf994b3faeda2239fe1b789
parent1d835874af143a5c8273268d09e2f259b4c1ba89
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