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 c88408df0ba10ce23f9d1e921257e0e11954a395..ea8b47baf9a0aa9cdb2d426e15c036afdd1b4a20 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 952f09b3128be465992632a0087606c9b7becf0e..e4996fb98d6f14fbf3867b42abedd5853f00345c 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) {