Go to file
Thomas Haller 24d333075a lib/socket: detect protocol in nl_socket_set_fd()
With support for socket option SO_PROTOCOL we don't need the protocol
argument to nl_socket_set_fd(). Maybe we should drop the protocol argument
and just not support nl_socket_set_fd() on older systems. But instead
keep the argument and allow passing -1 to autodetect it.

If the user sets a protocol option, we check via getsockopt() that the
value is correct and error out otherwise.

On older kernels, the user must set the value. Otherwise
nl_socket_set_fd() will fail.

Signed-off-by: Thomas Haller <thaller@redhat.com>
2015-03-06 12:57:43 +01:00
.travis travis-ci: run make check in travis build 2014-08-26 14:15:36 +02:00
doc libnl-3.2.26-rc1 release 2015-03-05 20:25:30 +01:00
etc pktloc: fix typo for tcp.flag.syn 2015-02-17 15:26:15 +01:00
include lib/socket: add nl_socket_set_fd() function 2015-03-05 12:10:28 +01:00
lib lib/socket: detect protocol in nl_socket_set_fd() 2015-03-06 12:57:43 +01:00
m4 doc: Check documentation generation requirements with autoconf 2012-05-09 10:06:24 +02:00
man genl: Update genl-ctrl-list(8) 2012-06-01 13:10:03 +02:00
python python: fix package meta data in setup.py 2015-01-12 14:17:38 +01:00
src correct --protocol option for nl-cls-* utilities 2015-02-25 10:08:07 +01:00
tests route/act: add a test case for skbedit action 2015-02-02 18:16:18 +01:00
.gitignore build: add individual linker version scripts for shared libraries 2015-02-02 17:28:06 +01:00
.indent.pro style: add .indent.pro file for GNU indent 2014-07-27 10:57:36 +02:00
.travis.yml build: Add continuous integration support via travis-ci 2014-08-26 12:41:38 +02:00
autogen.sh build: let autogen.sh script change into top source directory 2014-07-07 11:12:38 +02:00
ChangeLog libnl 3.2.10 2012-06-06 11:43:53 +02:00
configure.ac libnl-3.2.26-rc1 release 2015-03-05 20:25:30 +01:00
COPYING Update COPYING to fix FSF address 2012-01-17 12:38:37 +01:00
libnl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-3.sym lib/socket: add nl_socket_set_fd() function 2015-03-05 12:10:28 +01:00
libnl-cli-3.0.pc.in Add libnl-cli-3.0 to pkg-config tool 2011-10-10 11:39:24 +02:00
libnl-cli-3.sym build: don't export internal symbols 2015-02-02 17:28:06 +01:00
libnl-genl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-genl-3.sym build/trivial: reorder symbols in linker version scripts and add comment 2015-03-04 17:41:45 +01:00
libnl-idiag-3.0.pc.in Add support for inet diag Netlink protocol. 2013-07-19 02:06:21 -07:00
libnl-idiag-3.sym build/trivial: reorder symbols in linker version scripts and add comment 2015-03-04 17:41:45 +01:00
libnl-nf-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-nf-3.sym build/trivial: reorder symbols in linker version scripts and add comment 2015-03-04 17:41:45 +01:00
libnl-route-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-route-3.sym cls: add rtnl_u32_get_classid() API 2015-03-04 20:31:37 +01:00
libnl-xfrm-3.0.pc.in xfrm: add xfrm support 2014-07-20 18:14:46 +02:00
libnl-xfrm-3.sym build: don't export internal symbols 2015-02-02 17:28:06 +01:00
Makefile.am build: add linker scripts for libnl-cli-3.so library 2015-02-02 17:28:06 +01:00