Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Netlink Library Suite

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.

#68

Signed-off-by: Thomas Haller <thaller@redhat.com>
latest commit 2d61e89037
Thomas Haller authored
Failed to load latest commit information.
.travis travis-ci: run `make check` in travis build
doc libnl-3.2.25 release
etc pktloc: fix typo for tcp.flag.syn
include lib/socket: add nl_socket_set_fd() function
lib lib/socket: add nl_socket_set_fd() function
m4 doc: Check documentation generation requirements with autoconf
man genl: Update genl-ctrl-list(8)
python python: fix package meta data in setup.py
src correct --protocol option for nl-cls-* utilities
tests route/act: add a test case for skbedit action
.gitignore build: add individual linker version scripts for shared libraries
.indent.pro style: add .indent.pro file for GNU indent
.travis.yml build: Add continuous integration support via travis-ci
COPYING Update COPYING to fix FSF address
ChangeLog libnl 3.2.10
Makefile.am build: add linker scripts for libnl-cli-3.so library
autogen.sh build: let autogen.sh script change into top source directory
configure.ac build: add individual linker version scripts for shared libraries
libnl-3.0.pc.in Switch to libtool versioning system
libnl-3.sym lib/socket: add nl_socket_set_fd() function
libnl-cli-3.0.pc.in Add libnl-cli-3.0 to pkg-config tool
libnl-cli-3.sym build: don't export internal symbols
libnl-genl-3.0.pc.in Switch to libtool versioning system
libnl-genl-3.sym build/trivial: reorder symbols in linker version scripts and add comment
libnl-idiag-3.0.pc.in Add support for inet diag Netlink protocol.
libnl-idiag-3.sym build/trivial: reorder symbols in linker version scripts and add comment
libnl-nf-3.0.pc.in Switch to libtool versioning system
libnl-nf-3.sym build/trivial: reorder symbols in linker version scripts and add comment
libnl-route-3.0.pc.in Switch to libtool versioning system
libnl-route-3.sym cls: add rtnl_u32_get_classid() API
libnl-xfrm-3.0.pc.in xfrm: add xfrm support
libnl-xfrm-3.sym build: don't export internal symbols
Something went wrong with that request. Please try again.