]> git.puffer.fish Git - matthieu/frr.git/commitdiff
nhrpd: Only create one child sa
authorGaurav Goyal <gaurav.goyal@4rf.com>
Fri, 27 Nov 2020 02:41:09 +0000 (15:41 +1300)
committerReuben Dowle <reuben.dowle@4rf.com>
Wed, 16 Dec 2020 21:17:13 +0000 (10:17 +1300)
In some circumstances, especicially when GRE tunnel interface does not exist,
repeated child sa requests are sent. Prevent this by only sending another
request if the child sa does not exist

Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
nhrpd/nhrp_peer.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 2dc019c..85d7477
@@ -271,6 +271,8 @@ int nhrp_peer_check(struct nhrp_peer *p, int establish)
                return 0;
        if (sockunion_family(&vc->local.nbma) == AF_UNSPEC)
                return 0;
+       if (vc->ipsec)
+               return 1;
 
        p->prio = establish > 1;
        p->requested = 1;