Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This branch is 17 commits behind thom311:master

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>
latest commit 24d333075a
@thom311 thom311 authored
..
Failed to load latest commit information.
cli qdisc: avoid calling strstr() with a NULL haystack
fib_lookup cache: avoid duplicate check on initial dump
genl style: require comma after __ADD() macro
idiag idiag: fix set of identifying properties for idiag_msg_obj
netfilter nf: Remove unused function htonll()
route cls: add rtnl_u32_get_classid() API
xfrm xfrm: fix xfrm_sa_msg_parser() to return the value from the callback
.gitignore Added lex.yy.c to .gitignore
Makefile.am build: fix path to linker version scripts for out-of-tree build
addr.c lib: add const-ness to appropriate parameters in addr, attr, data
attr.c lib: add const-ness to appropriate parameters in addr, attr, data
cache.c cache: avoid duplicate check on initial dump
cache_mngr.c lib: log errors from platform
cache_mngt.c cache: assert in nl_cache_mngt_register() for valid oo_keygen() function
data.c lib: add const-ness to appropriate parameters in addr, attr, data
error.c Move private header files to <netlink-private/*>
handlers.c Remove pointless N < 0 checks
hash.c Hash: Properly prefix hash functions
hashtable.c Move private header files to <netlink-private/*>
msg.c style: require comma after __ADD() macro
nl.c lib/socket: add nl_socket_set_fd() function
object.c object: fix returning UINT_MAX for uint32_t in nl_object_diff()
socket.c lib/socket: detect protocol in nl_socket_set_fd()
utils.c route/addr: consider CACHEINFO in addr_compare()/nl_object_diff()
version.c Run-time version information is now available
Something went wrong with that request. Please try again.