summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-03-28 13:58:38 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-03-28 13:58:38 +0200
commit3abe11928494ca315d1b6c53d9d9805d0a0fa5b9 (patch)
tree2ee9ed8730f005765bdcded1c667a8397172733d /src/socket.c
parenta5fc31eb37f7f5b88b727c52daccae966a53334b (diff)
downloadlibmnl-3abe11928494ca315d1b6c53d9d9805d0a0fa5b9.tar.gz
libmnl-3abe11928494ca315d1b6c53d9d9805d0a0fa5b9.zip
fix mnl_socket_bind() to support the selection of the netlink portID
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c
index 7ab2516..ad29800 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -85,6 +85,7 @@ int mnl_socket_bind(struct mnl_socket *nl, int groups, int pid)
nl->addr.nl_family = AF_NETLINK;
nl->addr.nl_groups = groups;
+ nl->addr.nl_pid = pid;
ret = bind(nl->fd, (struct sockaddr *) &nl->addr, sizeof (nl->addr));
if (ret < 0)