From 5186605c9361493ec43379a55a5422a2a25c802d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 29 Apr 2009 02:21:56 +0200 Subject: 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 --- src/rtnl.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3