Disable unused RTNL address handling for now
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 7 Mar 2008 12:53:54 +0000 (13:53 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 7 Mar 2008 12:53:54 +0000 (13:53 +0100)
src/iface.c
src/rtnl.c

index c88408d..ea8b47b 100644 (file)
@@ -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;
 }
index 952f09b..e4996fb 100644 (file)
@@ -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) {