]> git.proxmox.com Git - mirror_iproute2.git/commit
lib: Extract from devlink/mnlg a helper, mnlu_socket_open()
authorPetr Machata <me@pmachata.org>
Thu, 12 Nov 2020 22:24:41 +0000 (23:24 +0100)
committerDavid Ahern <dsahern@gmail.com>
Sat, 14 Nov 2020 02:43:15 +0000 (19:43 -0700)
commit72858c7b77d0fc2b6bd6d0afe115e31ce53d6a1b
tree0565420b144150852594f55b1d4b6d0a932543c4
parent9091ff0251f8da256d55ca4e994dbd14e32d08ad
lib: Extract from devlink/mnlg a helper, mnlu_socket_open()

This little dance of mnl_socket_open(), option setting, and bind, is the
same regardless of tool. Extract into a new module that should hold helpers
for working with libmnl, mnl_util.c.

Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
devlink/Makefile
devlink/mnlg.c
include/mnl_utils.h [new file with mode: 0644]
lib/Makefile
lib/mnl_utils.c [new file with mode: 0644]