netlink-socket: Let the kernel choose Netlink pids for us.
authorBen Pfaff <blp@nicira.com>
Mon, 14 Nov 2011 18:10:58 +0000 (10:10 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 28 Nov 2011 20:16:48 +0000 (12:16 -0800)
commit2c5a6834513540a494bfb3bfc48b8a91c4126a11
treed2655691c1524b8bf94bf1497d69201588931848
parent5fcc0d004ae0aa080deed51c842d074a83ec1f67
netlink-socket: Let the kernel choose Netlink pids for us.

The Netlink code in the Linux kernel has been willing to choose unique
Netlink pids for userspace sockets since at least 2.4.36 and probably
earlier.  There's no value in choosing them ourselves.

This simplifies the code and eliminates the possibility of exhausting our
supply of Netlink PIDs.
lib/netlink-socket.c