From: Guillaume Nault <g.nault@alphalink.fr>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH libmnl 0/2] Introduce mnl_socket_open2()
Date: Fri, 2 Oct 2015 22:12:30 +0200 [thread overview]
Message-ID: <cover.1443815157.git.g.nault@alphalink.fr> (raw)
mnl_socket_open2() extends mnl_socket_open() with user provided flags, to
be used in the socket() call.
Patch #1 implements the new function while patch #2 updates the
examples by applying the SOCK_CLOEXEC flag on netlink sockets. Though
it's a safe default, this flag isn't necessary for the simple programs
under examples/. So feel free to drop patch #2 if considered of too
little value.
Guillaume Nault (2):
socket: introduce mnl_socket_open2()
examples: use mnl_socket_open2()
examples/genl/genl-family-get.c | 4 ++--
examples/genl/genl-group-events.c | 4 ++--
examples/kobject/kobject-event.c | 4 ++--
examples/netfilter/nf-log.c | 4 ++--
examples/netfilter/nf-queue.c | 4 ++--
examples/netfilter/nfct-create-batch.c | 4 ++--
examples/netfilter/nfct-daemon.c | 4 ++--
examples/netfilter/nfct-dump.c | 4 ++--
examples/netfilter/nfct-event.c | 4 ++--
examples/rtnl/rtnl-addr-dump.c | 4 ++--
examples/rtnl/rtnl-link-dump.c | 4 ++--
examples/rtnl/rtnl-link-dump2.c | 4 ++--
examples/rtnl/rtnl-link-dump3.c | 4 ++--
examples/rtnl/rtnl-link-event.c | 4 ++--
examples/rtnl/rtnl-link-set.c | 4 ++--
examples/rtnl/rtnl-route-add.c | 4 ++--
examples/rtnl/rtnl-route-dump.c | 4 ++--
examples/rtnl/rtnl-route-event.c | 4 ++--
include/libmnl/libmnl.h | 3 ++-
src/libmnl.map | 1 +
src/socket.c | 41 ++++++++++++++++++++++++++--------
21 files changed, 71 insertions(+), 46 deletions(-)
--
2.6.0
next reply other threads:[~2015-10-02 20:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 20:12 Guillaume Nault [this message]
2015-10-02 20:12 ` [PATCH libmnl 1/2] socket: introduce mnl_socket_open2() Guillaume Nault
2015-10-05 15:37 ` Pablo Neira Ayuso
2015-10-05 16:33 ` Guillaume Nault
2015-10-05 17:27 ` Jozsef Kadlecsik
2015-10-05 18:11 ` Pablo Neira Ayuso
2015-10-05 18:38 ` Jozsef Kadlecsik
2015-10-05 18:14 ` Guillaume Nault
2015-10-05 18:50 ` Jan Engelhardt
2015-10-12 14:48 ` Pablo Neira Ayuso
2015-10-02 20:12 ` [PATCH libmnl 2/2] examples: use mnl_socket_open2() Guillaume Nault
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=cover.1443815157.git.g.nault@alphalink.fr \
--to=g.nault@alphalink.fr \
--cc=netfilter-devel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).