diff options
author | Gaurav Goyal <gaurav.goyal@4rf.com> | 2021-02-04 04:08:08 +0100 |
---|---|---|
committer | Reuben Dowle <reuben.dowle@4rf.com> | 2021-03-17 05:03:47 +0100 |
commit | 58ef1668ae45613dae36ca2e11a717236a3e4399 (patch) | |
tree | 9e1def5a14b9643c30335803757442be2ad5243b /nhrpd/nhrp_peer.c | |
parent | nhrpd: Make comments clearer, fix style issues (diff) | |
download | frr-58ef1668ae45613dae36ca2e11a717236a3e4399.tar.xz frr-58ef1668ae45613dae36ca2e11a717236a3e4399.zip |
nhrpd: When IPsec profile is added or deleted, reset the vc and re-check peer
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
Diffstat (limited to 'nhrpd/nhrp_peer.c')
-rw-r--r-- | nhrpd/nhrp_peer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 5e9929ade..0d589e305 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -147,6 +147,10 @@ static void nhrp_peer_ifp_notify(struct notifier_block *n, unsigned long cmd) case NOTIFY_INTERFACE_ADDRESS_CHANGED: notifier_call(&p->notifier_list, NOTIFY_PEER_IFCONFIG_CHANGED); break; + case NOTIFY_INTERFACE_IPSEC_CHANGED: + __nhrp_peer_check(p); + notifier_call(&p->notifier_list, NOTIFY_PEER_IFCONFIG_CHANGED); + break; case NOTIFY_INTERFACE_MTU_CHANGED: notifier_call(&p->notifier_list, NOTIFY_PEER_MTU_CHANGED); break; |