From c016ac34da91eef334844f43fbcb2639ed17bf8e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 7 Mar 2008 13:53:54 +0100 Subject: [PATCH] Disable unused RTNL address handling for now --- src/iface.c | 2 ++ src/rtnl.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/iface.c b/src/iface.c index c88408d..ea8b47b 100644 --- a/src/iface.c +++ b/src/iface.c @@ -386,6 +386,7 @@ void connman_iface_indicate_station(struct connman_iface *iface, int connman_iface_get_ipv4(struct connman_iface *iface, struct connman_ipv4 *ipv4) { +#if 0 struct { struct nlmsghdr hdr; struct rtgenmsg msg; @@ -405,6 +406,7 @@ int connman_iface_get_ipv4(struct connman_iface *iface, req.msg.rtgen_family = AF_INET; __connman_rtnl_send(&req, sizeof(req)); +#endif return 0; } diff --git a/src/rtnl.c b/src/rtnl.c index 952f09b..e4996fb 100644 --- a/src/rtnl.c +++ b/src/rtnl.c @@ -403,7 +403,8 @@ int __connman_rtnl_init(void) memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; - addr.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR; + addr.nl_groups = RTMGRP_LINK; + //addr.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR; //addr.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR | RTMGRP_IPV4_ROUTE; if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) { -- 2.7.4