summaryrefslogtreecommitdiffstats
path: root/src/rtnl.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-04-29 02:21:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-04-29 02:21:56 +0200
commit5186605c9361493ec43379a55a5422a2a25c802d (patch)
treef7d5b71895b0b04b492b228e266a252320eca38d /src/rtnl.c
parent269a060f38395b8ec64f915f68d4f79a4430780a (diff)
rtnl: fix wrong netlink group bindings in the interface API
This patch removes RTMGRP_IPV4_ROUTE and RTMGRP_IPV4_IFADDR which report event notifications about changes in the route and address of interfaces. We are only interested in the interface link status so RTMGRP_LINK is enough. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rtnl.c')
-rw-r--r--src/rtnl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index 93820f1..548dc09 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -214,8 +214,7 @@ struct rtnl_handle *rtnl_open(void)
memset(&h->rtnl_local, 0, sizeof(h->rtnl_local));
h->rtnl_local.nl_family = AF_NETLINK;
- h->rtnl_local.nl_groups =
- RTMGRP_IPV4_ROUTE|RTMGRP_IPV4_IFADDR|RTMGRP_LINK;
+ h->rtnl_local.nl_groups = RTMGRP_LINK;
if (bind(h->rtnl_fd, (struct sockaddr *) &h->rtnl_local, addrlen) < 0) {
rtnl_log(LOG_ERROR, "unable to bind rtnetlink socket");
goto err_close;