summaryrefslogtreecommitdiff
path: root/sysdep/unix/sync-if.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-02 18:36:09 +0000
committerMartin Mares <mj@ucw.cz>1999-03-02 18:36:09 +0000
commite35ef181a41384446aca614522a7cbb10606dd5b (patch)
treeac8f7b78a3782ea8f09c7c649fefd3ab40bd1f78 /sysdep/unix/sync-if.c
parentbcbd8cc3be670a96e1405b896cff4be0912ba379 (diff)
o The if_change_too_big_p change was too high-spirited. Fixed.
o Introduced if_find_by_index() o Recognizing two types of interface updates: full update (starting with if_start_update(), ending with if_end_update(), guaranteed to see all existing interfaces) and a partial update (only if_update(), usually due to asynchronous interface notifications).
Diffstat (limited to 'sysdep/unix/sync-if.c')
-rw-r--r--sysdep/unix/sync-if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdep/unix/sync-if.c b/sysdep/unix/sync-if.c
index ce54fc77..3dfa4f01 100644
--- a/sysdep/unix/sync-if.c
+++ b/sysdep/unix/sync-if.c
@@ -37,6 +37,7 @@ scan_ifs(struct ifreq *r, int cnt)
ip_addr netmask;
int l;
+ if_start_update();
for (cnt /= sizeof(struct ifreq); cnt; cnt--, r++)
{
bzero(&i, sizeof(i));