summaryrefslogtreecommitdiffstats
path: root/include/netlink-private
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-05 07:46:31 (GMT)
committerThomas Haller <thaller@redhat.com>2015-03-05 10:25:20 (GMT)
commit15824e42730980132a9e52d0c9d6929808e5ae78 (patch)
tree5c632a65922bfbdd2a6cc216fa91c4263c2e5f7e /include/netlink-private
parent364ab3daf6d00dfa8e0dd81046f741e70cac5da9 (diff)
downloadlibnl-15824e42730980132a9e52d0c9d6929808e5ae78.zip
libnl-15824e42730980132a9e52d0c9d6929808e5ae78.tar.gz
libnl-15824e42730980132a9e52d0c9d6929808e5ae78.tar.bz2
lib/socket: remove NL_SOCK_BUFSIZE_SET socket flag
The flag was not actually used. NL_SOCK_BUFSIZE_SET was only set by nl_socket_set_buffer_size(). Note that you can only call nl_socket_set_buffer_size() on a socket that is already connected via nl_connect(). On first call, nl_connect() would always see NL_SOCK_BUFSIZE_SET unset, and call nl_socket_set_buffer_size(). Since the flag was never unset, when trying to connect a socket a second time, we would not set the buffer size again. Which was a bug. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include/netlink-private')
-rw-r--r--include/netlink-private/types.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/netlink-private/types.h b/include/netlink-private/types.h
index 6d5cc7f..54f06b5 100644
--- a/include/netlink-private/types.h
+++ b/include/netlink-private/types.h
@@ -24,7 +24,6 @@
#include <linux/tc_act/tc_mirred.h>
#include <linux/tc_act/tc_skbedit.h>
-#define NL_SOCK_BUFSIZE_SET (1<<0)
#define NL_SOCK_PASSCRED (1<<1)
#define NL_OWN_PORT (1<<2)
#define NL_MSG_PEEK (1<<3)