Remove link_flags callback
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Oct 2008 12:26:30 +0000 (14:26 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Oct 2008 12:26:30 +0000 (14:26 +0200)
include/rtnl.h
src/rtnl.c

index 3af6321..395d20b 100644 (file)
@@ -43,7 +43,6 @@ struct connman_rtnl {
                                        unsigned flags, unsigned change);
        void (*dellink) (unsigned short type, int index,
                                        unsigned flags, unsigned change);
-       void (*link_flags) (int index, short flags);
 };
 
 extern int connman_rtnl_register(struct connman_rtnl *rtnl);
index 35fa54b..f02c94b 100644 (file)
@@ -124,24 +124,6 @@ static void process_dellink(unsigned short type, int index,
        g_static_rw_lock_reader_unlock(&rtnl_lock);
 }
 
-static void process_link_flags(int index, short flags)
-{
-       GSList *list;
-
-       DBG("idex %d", index);
-
-       g_static_rw_lock_reader_lock(&rtnl_lock);
-
-       for (list = rtnl_list; list; list = list->next) {
-               struct connman_rtnl *rtnl = list->data;
-
-               if (rtnl->link_flags)
-                       rtnl->link_flags(index, flags);
-       }
-
-       g_static_rw_lock_reader_unlock(&rtnl_lock);
-}
-
 static inline void print_inet(struct rtattr *attr, const char *name, int family)
 {
        if (family == AF_INET) {
@@ -244,8 +226,6 @@ static void rtnl_link(struct nlmsghdr *hdr)
                        break;
                }
        }
-
-       process_link_flags(msg->ifi_index, msg->ifi_flags);
 }
 
 static void rtnl_newlink(struct nlmsghdr *hdr)