Skip to content
Pull request Compare This branch is 142 commits behind thom311:master.
Latest commit 2d61e89 Mar 5, 2015 @thom311 thom311 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.

thom311#68

Signed-off-by: Thomas Haller <thaller@redhat.com>
..
Failed to load latest commit information.
cli
fib_lookup
genl
idiag
netfilter
route
xfrm
.gitignore
addr.h
attr.h
cache-api.h
cache.h
data.h lib: add const-ness to appropriate parameters in addr, attr, data Feb 16, 2015
errno.h
handlers.h
hash.h
hashtable.h
list.h
msg.h
netlink-compat.h
netlink-kernel.h use linux/netlink.h instead of netlink/netlink-kernel.h Mar 16, 2011
netlink.h
object-api.h
object.h
socket.h
types.h
utils.h
version.h.in
Something went wrong with that request. Please try again.