libnl/include
Thomas Haller 2d61e89037 lib/socket: add nl_socket_set_fd() function
This is based on the patch by sagil@infinidat.com, but heavily modified.

Add a function nl_socket_set_fd(), I renamed it from nl_connect_fd().

Now nl_connect() and nl_socket_set_fd() are implemented independently as
they share little code. But they have similar functionality:
to initialize a libnl socket and set it's file descriptor.

A user who wants libnl to setup the socket can continue to use nl_connect().
A user with special requirements should setup the socket entirely. That includes
calling socket() (with or without SOCK_CLOEXEC), bind(), setting buffer size.

For the same reason I dropped nl_create_fd(). It didn't do much more then
calling socket() -- which the user can do directly.

https://github.com/thom311/libnl/pull/68

Signed-off-by: Thomas Haller <thaller@redhat.com>
2015-03-05 12:10:28 +01:00
..
linux-private/linux route/act: add skbedit action 2015-02-02 18:16:11 +01:00
netlink lib/socket: add nl_socket_set_fd() function 2015-03-05 12:10:28 +01:00
netlink-private lib/socket: remove NL_SOCK_BUFSIZE_SET socket flag 2015-03-05 11:25:20 +01:00
Makefile.am route/act: add skbedit action 2015-02-02 18:16:11 +01:00