Thread (1 message) 1 message, 1 author, 2013-09-23
  • (off-list ancestor, not in this archive)
  • Re: iproute2 and libnl3? · Stephen Hemminger <stephen@networkplumber.org> · 2013-09-23

Re: iproute2 and libnl3?

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2013-09-23 19:20:25

On Mon, 23 Sep 2013 11:17:40 -0700
Arvid Brodin [off-list ref] wrote:
Hi Stephen (and others),

I'm trying to move the functionality from a small user space tool I wrote for 
listening to HSR Netlink messages into iproute2. The tool uses generic netlink 
through libnl3. 

It seems iproute2 uses libnl-1 though:

iphsr.c:325:6: warning: 'struct nl_sock' declared inside parameter list
iphsr.c:334:30: error: 'NL_AUTO_PORT' undeclared (first use in this function)
iphsr.c:341:2: warning: implicit declaration of function 'nl_send_auto'
iphsr.c:417:2: warning: implicit declaration of function 'genl_ctrl_resolve_grp'
iphsr.c:424:2: warning: implicit declaration of function 'nl_socket_add_memberships'
iphsr.c:455:2: warning: implicit declaration of function 'nl_socket_alloc'
iphsr.c:463:2: warning: implicit declaration of function 'nl_socket_disable_seq_check'

Are there alternatives to the above functionality in libnl-1, or do I need to 
implement it myself (copy them from the libnl3 code perhaps)?
Upstream version of iproute does not use libnl.
Any patches to use libnl are rejected. iproute2 has its own internal libnetlink  library.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help