diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-06-25 15:05:38 +0200 |
---|---|---|
committer | pablo <pablo@dune.localdomain> | 2010-06-25 15:05:38 +0200 |
commit | 5d51315f5263f9cbda18f70e2d340a66cf1bf1f9 (patch) | |
tree | 1ef351f4055e63ec4dd2d39101ff409e252236c5 /include/libmnl | |
parent | ff088fc0d88ef97fe9559880643def6fe40ae086 (diff) | |
download | libmnl-5d51315f5263f9cbda18f70e2d340a66cf1bf1f9.tar.gz libmnl-5d51315f5263f9cbda18f70e2d340a66cf1bf1f9.zip |
socket: remove mnl_socket_sendmsg() and mnl_socket_recvmsg()
These functions are too simple wrappers that bloat the library.
We can use mnl_socket_get_fd() to obtain the file descriptor
and invoke message-oriented system call instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r-- | include/libmnl/libmnl.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index 8c3815d..09099a1 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -20,9 +20,7 @@ extern int mnl_socket_close(struct mnl_socket *nl); extern int mnl_socket_get_fd(const struct mnl_socket *nl); extern unsigned int mnl_socket_get_portid(const struct mnl_socket *nl); extern int mnl_socket_sendto(const struct mnl_socket *nl, const void *req, size_t siz); -extern int mnl_socket_sendmsg(const struct mnl_socket *nl, const struct msghdr *msg, int flags); extern int mnl_socket_recvfrom(const struct mnl_socket *nl, void *buf, size_t siz); -extern int mnl_socket_recvmsg(const struct mnl_socket *nl, struct msghdr *msg, int flags); extern int mnl_socket_setsockopt(const struct mnl_socket *nl, int type, void *buf, socklen_t len); extern int mnl_socket_getsockopt(const struct mnl_socket *nl, int type, void *buf, socklen_t *len); |