Browse Source

nhrp: notify 'tunnel protection' changes

to triggers refresh of IKE SAs immediately on this command
Timo Teräs 2 years ago
parent
commit
add1dcd0b3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      nhrpd/nhrp_interface.c

+ 2 - 0
nhrpd/nhrp_interface.c

@@ -391,6 +391,8 @@ void nhrp_interface_set_protection(struct interface *ifp, const char *profile, c
 
 	if (nifp->ipsec_fallback_profile) free(nifp->ipsec_fallback_profile);
 	nifp->ipsec_fallback_profile = fallback_profile ? strdup(fallback_profile) : NULL;
+
+	notifier_call(&nifp->notifier_list, NOTIFY_INTERFACE_ADDRESS_CHANGED);
 }
 
 void nhrp_interface_set_source(struct interface *ifp, const char *ifname)