diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2015-10-02 22:12:33 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-10-04 21:15:53 +0200 |
commit | 1891e0e2cefced50e7bfdacd50942cefe5bf73ba (patch) | |
tree | abf710804b97f442659ca628050027e37c00869f /include/libmnl | |
parent | b180a6ee27674b5060cf54a0149a9109da9d9fd1 (diff) | |
download | libmnl-1891e0e2cefced50e7bfdacd50942cefe5bf73ba.tar.gz libmnl-1891e0e2cefced50e7bfdacd50942cefe5bf73ba.zip |
socket: introduce mnl_socket_open2()
Define mnl_socket_open2() so that user can pass a set of SOCK_* flags
at socket creation time.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r-- | include/libmnl/libmnl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index 3a589bc..5adb13c 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -21,7 +21,8 @@ extern "C" { struct mnl_socket; -extern struct mnl_socket *mnl_socket_open(int type); +extern struct mnl_socket *mnl_socket_open(int bus); +extern struct mnl_socket *mnl_socket_open2(int bus, int flags); extern struct mnl_socket *mnl_socket_fdopen(int fd); extern int mnl_socket_bind(struct mnl_socket *nl, unsigned int groups, pid_t pid); extern int mnl_socket_close(struct mnl_socket *nl); |