]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #3776 from opensourcerouting/pbrd-interface-nexthops
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 22 Mar 2019 07:45:48 +0000 (03:45 -0400)
committerGitHub <noreply@github.com>
Fri, 22 Mar 2019 07:45:48 +0000 (03:45 -0400)
pbrd: add support for interface nexthops

1  2 
lib/nexthop_group.c
pbrd/pbr_nht.c
pbrd/pbr_vty.c
pbrd/pbr_zebra.c

index f940418d8325b89dd1a1de747ce0da64ec891399,bf298c6dec286359288e7f80ac0436f052b043ed..27ab04279c1cc3617dca745fd3b19c2f54def98c
@@@ -205,10 -219,15 +219,13 @@@ static int nhgl_cmp(struct nexthop_hol
  
  static void nhgl_delete(struct nexthop_hold *nh)
  {
 -      if (nh->intf)
 -              XFREE(MTYPE_TMP, nh->intf);
 +      XFREE(MTYPE_TMP, nh->intf);
  
 -      if (nh->nhvrf_name)
 -              XFREE(MTYPE_TMP, nh->nhvrf_name);
 +      XFREE(MTYPE_TMP, nh->nhvrf_name);
  
+       if (nh->addr)
+               sockunion_free(nh->addr);
        XFREE(MTYPE_TMP, nh);
  }
  
diff --cc pbrd/pbr_nht.c
Simple merge
diff --cc pbrd/pbr_vty.c
Simple merge
Simple merge