From: Arvid Brodin <arvid.brodin@xdin.com>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: iproute2 and libnl3?
Date: Mon, 23 Sep 2013 20:17:33 +0200 [thread overview]
Message-ID: <524085BD.7070608@xdin.com> (raw)
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)?
--
Arvid Brodin | Consultant (Linux)
XDIN AB | Knarrarnäsgatan 7 | SE-164 40 Kista | Sweden | xdin.com
next reply other threads:[~2013-09-23 18:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-23 18:17 Arvid Brodin [this message]
[not found] <1902752B0C92F943AB7EA9EE13E2DEEC1272C74D80@HQ1-EXCH02.corp.brocade.com>
2013-09-23 19:19 ` iproute2 and libnl3? Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=524085BD.7070608@xdin.com \
--to=arvid.brodin@xdin.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.