third_party_libnl/lib
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
..
cli qdisc: avoid calling strstr() with a NULL haystack 2014-08-27 12:56:34 +02:00
fib_lookup cache: avoid duplicate check on initial dump 2014-11-23 15:58:13 +01:00
genl style: require comma after __ADD() macro 2014-07-27 10:57:31 +02:00
idiag idiag: fix set of identifying properties for idiag_msg_obj 2014-11-27 16:57:28 +01:00
netfilter nf: Remove unused function htonll() 2014-08-26 13:09:20 +02:00
route cls: add rtnl_u32_get_classid() API 2015-03-04 20:31:37 +01:00
xfrm xfrm: fix xfrm_sa_msg_parser() to return the value from the callback 2014-08-27 13:00:46 +02:00
.gitignore Added lex.yy.c to .gitignore 2012-08-30 03:19:04 +06:00
addr.c lib: add const-ness to appropriate parameters in addr, attr, data 2015-02-16 11:20:18 +01:00
attr.c lib: add const-ness to appropriate parameters in addr, attr, data 2015-02-16 11:20:18 +01:00
cache_mngr.c lib: log errors from platform 2015-02-17 13:34:01 +01:00
cache_mngt.c cache: assert in nl_cache_mngt_register() for valid oo_keygen() function 2014-11-25 10:44:26 +01:00
cache.c cache: avoid duplicate check on initial dump 2014-11-23 15:58:13 +01:00
data.c lib: add const-ness to appropriate parameters in addr, attr, data 2015-02-16 11:20:18 +01:00
error.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
handlers.c Remove pointless N < 0 checks 2014-08-26 14:12:52 +02:00
hash.c Hash: Properly prefix hash functions 2012-11-10 10:22:26 +01:00
hashtable.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
Makefile.am build: fix path to linker version scripts for out-of-tree build 2015-03-05 19:11:27 +01:00
msg.c style: require comma after __ADD() macro 2014-07-27 10:57:31 +02:00
nl.c lib/socket: add nl_socket_set_fd() function 2015-03-05 12:10:28 +01:00
object.c object: fix returning UINT_MAX for uint32_t in nl_object_diff() 2014-11-27 12:00:41 +01:00
socket.c lib/socket: detect protocol in nl_socket_set_fd() 2015-03-06 12:57:43 +01:00
utils.c route/addr: consider CACHEINFO in addr_compare()/nl_object_diff() 2014-11-27 12:53:38 +01:00
version.c Run-time version information is now available 2012-08-30 03:19:04 +06:00