From 4708f2c89edea4be2562256544cf35309cf1ea89 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 11 Apr 2010 18:34:50 +0200 Subject: [PATCH] Ensure subnet-up/down scripts are called after HUP when necessary. --- src/net.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net.c b/src/net.c index db8eae7..a04ba00 100644 --- a/src/net.c +++ b/src/net.c @@ -506,11 +506,15 @@ int main_loop(void) { subnet = node->data; if(subnet->expires == 1) { send_del_subnet(broadcast, subnet); + if(subnet->owner->status.reachable) + subnet_update(subnet->owner, subnet, false); subnet_del(subnet->owner, subnet); } else if(subnet->expires == -1) { subnet->expires = 0; } else { send_add_subnet(broadcast, subnet); + if(subnet->owner->status.reachable) + subnet_update(subnet->owner, subnet, true); } } } -- 2.25.1