Disable link attribute parsing for now
[connman] / src / rtnl.c
index f02c94b..5c88cd4 100644 (file)
@@ -158,6 +158,7 @@ static inline void print_attr(struct rtattr *attr, const char *name)
 
 static void rtnl_link(struct nlmsghdr *hdr)
 {
+#if 0
        struct ifinfomsg *msg;
        struct rtattr *attr;
        int bytes;
@@ -226,6 +227,7 @@ static void rtnl_link(struct nlmsghdr *hdr)
                        break;
                }
        }
+#endif
 }
 
 static void rtnl_newlink(struct nlmsghdr *hdr)
@@ -469,7 +471,7 @@ int connman_rtnl_send_getlink(void)
        req.hdr.nlmsg_seq = 42;
        req.msg.rtgen_family = AF_INET;
 
-       __connman_rtnl_send(&req, sizeof(req));
+       return __connman_rtnl_send(&req, sizeof(req));
 }
 
 int __connman_rtnl_init(void)