diff options
Diffstat (limited to 'nest/iface.c')
-rw-r--r-- | nest/iface.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nest/iface.c b/nest/iface.c index 591733a..f6f33a9 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -313,6 +313,18 @@ if_end_update(void) } void +if_feed_baby(struct proto *p) +{ + struct iface *i; + + if (!p->if_notify) + return; + debug("Announcing interfaces to new protocol %s\n", p->name); + WALK_LIST(i, iface_list) + p->if_notify(p, IF_CHANGE_CREATE | ((i->flags & IF_UP) ? IF_CHANGE_UP : 0), NULL, i); +} + +void if_init(void) { if_pool = rp_new(&root_pool, "Interfaces"); |