Skip to content

Introduce mnl_socket_open2()

Guillaume Nault netfilter-devel 1 version Applied

Status from this message: Applied, thanks for your patience.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2socket: introduce mnl_socket_open2()include/libmnl/libmnl.h src/libmnl.map src/socket.c+35 -108 replies
2/2examples: use mnl_socket_open2()examples/genl/genl-family-get.c examples/genl/genl-group-events.c examples/kobject/kobject-event.c +15 more+36 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH libmnl 0/2] Introduce mnl_socket_open2()

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(-)
Signature · 1 line
2.6.0