From: Ondrej Zajicek Date: Sat, 21 Jan 2012 21:41:31 +0000 (+0100) Subject: Fixes a bug in BSD iface scan. X-Git-Tag: v1.3.7~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b573755df426156c22d2a4c65e3f502284820166;p=thirdparty%2Fbird.git Fixes a bug in BSD iface scan. if_update() should be called always, because periodic iface scan code removes all not-updated ifaces. --- diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 4bf6600d0..4a91e85af 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -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