From b573755df426156c22d2a4c65e3f502284820166 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 Jan 2012 22:41:31 +0100 Subject: [PATCH] Fixes a bug in BSD iface scan. if_update() should be called always, because periodic iface scan code removes all not-updated ifaces. --- sysdep/bsd/krt-sock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 4bf6600d..4a91e85a 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