]> git.decadent.org.uk Git - nfs-utils.git/commit
Never set SO_REUSEADDR on a UDP socket.
authorNeil Brown <neilb@suse.de>
Thu, 22 Mar 2007 05:06:22 +0000 (16:06 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 22 Mar 2007 05:06:22 +0000 (16:06 +1100)
commitbd401e645200601ab9c25dab905425112f3cafc4
treebc85cab6ddaebd5108b7480e946ec84a2e27c0d6
parent0ec44a497a508fb631d472ce8c33041c497e1ca5
Never set SO_REUSEADDR on a UDP socket.

The effect is quite different from TCP sockets.
For TCP, it allows you to listen for new connections even if there
are outstanding old connections with the same local address.
For UDP, it allows other people to steal your packets by
binding to the same address.
support/nfs/rpcmisc.c
support/nfs/svc_socket.c