]> git.meshlink.io Git - catta/commitdiff
* Change order of relevancy checks and RR updating for new/removed interfaces
authorLennart Poettering <lennart@poettering.net>
Sun, 28 Aug 2005 15:17:31 +0000 (15:17 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 28 Aug 2005 15:17:31 +0000 (15:17 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@469 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/iface.c

index f60224b5df2af6a27db685a3943f533aac51dd54..8540720a7c50f263627b2d5d89f6294e3070172b 100644 (file)
@@ -424,8 +424,8 @@ static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdat
             a = RTA_NEXT(a, l);
         }
 
-        update_hw_interface_rr(m, hw, 0);
         check_hw_interface_relevant(m, hw);
+        update_hw_interface_rr(m, hw, 0);
         
     } else if (n->nlmsg_type == RTM_DELLINK) {
         struct ifinfomsg *ifinfomsg = NLMSG_DATA(n);
@@ -509,8 +509,8 @@ static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdat
             free_address(m, addr);
         }
 
-        update_interface_rr(m, i, 0);
         check_interface_relevant(m, i);
+        update_interface_rr(m, i, 0);
         
     } else if (n->nlmsg_type == NLMSG_DONE) {