]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes a bug in BSD iface scan.
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 Jan 2012 21:41:31 +0000 (22:41 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 Jan 2012 21:41:31 +0000 (22:41 +0100)
if_update() should be called always, because periodic iface scan code
removes all not-updated ifaces.

sysdep/bsd/krt-sock.c

index 4bf6600d0ec74c29e5b9a6e6940c43dda1f7d9cd..4a91e85af6dc048b002a4dcbcd0938d7391c7d88 100644 (file)
@@ -471,8 +471,7 @@ krt_read_ifinfo(struct ks_msg *msg)
   else
     f.flags |= IF_MULTIACCESS;      /* NBMA */
 
-  if((!iface) || memcmp(&f, iface, sizeof(struct iface)))
-    if_update(&f);     /* Just if something happens */
+  if_update(&f);
 }
 
 static void