diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-03-28 13:58:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-03-28 13:58:38 +0200 |
commit | 3abe11928494ca315d1b6c53d9d9805d0a0fa5b9 (patch) | |
tree | 2ee9ed8730f005765bdcded1c667a8397172733d /src/socket.c | |
parent | a5fc31eb37f7f5b88b727c52daccae966a53334b (diff) | |
download | libmnl-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.c | 1 |
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) |