]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Fix --disable-rtadv to actually compile
authorAlex Couloumbis <alex@ozo.com>
Thu, 8 Jun 2017 11:55:25 +0000 (07:55 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 8 Jun 2017 11:57:25 +0000 (07:57 -0400)
Signed-off-by: Alex Couloumbis <alex@ozo.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/interface.c
zebra/misc_null.c
zebra/zserv.c

index c60cb8dcbca9318437ffea96db253ba787ad93ae..9393305f06f89e307e8bf3c4d512f034aa30382a 100644 (file)
@@ -849,6 +849,7 @@ if_up (struct interface *ifp)
 
   if_nbr_ipv6ll_to_ipv4ll_neigh_add_all (ifp);
 
+#if defined (HAVE_RTADV)
   /* Enable fast tx of RA if enabled && RA interval is not in msecs */
   if (zif->rtadv.AdvSendAdvertisements &&
       (zif->rtadv.MaxRtrAdvInterval >= 1000))
@@ -856,6 +857,7 @@ if_up (struct interface *ifp)
       zif->rtadv.inFastRexmit = 1;
       zif->rtadv.NumFastReXmitsRemain = RTADV_NUM_FAST_REXMITS;
     }
+#endif
 
   /* Install connected routes to the kernel. */
   if_install_connected (ifp);
index b125becdc988733e7fcec051e76d7d3c02f10f89..f58eb628b0493a0ef14bd468c5b951afd115e1a1 100644 (file)
@@ -25,7 +25,9 @@
 #include "zebra/irdp.h"
 #include "zebra/interface.h"
 
+#if defined (HAVE_RTADV)
 void rtadv_config_write (struct vty *vty, struct interface *ifp) { return; }
+#endif
 void irdp_config_write (struct vty *vty, struct interface *ifp) { return; }
 #ifdef HAVE_PROC_NET_DEV
 void ifstat_update_proc (void) { return; }
index ea4c769fa57cf137139934bc741f55dc067e7f6f..9d05a3b9df82ef12761d592533e87f6843f75692 100644 (file)
@@ -2396,10 +2396,14 @@ zebra_client_read (struct thread *thread)
       zebra_ptm_bfd_client_register(client, sock, length);
       break;
     case ZEBRA_INTERFACE_ENABLE_RADV:
+#if defined (HAVE_RTADV)
       zebra_interface_radv_set (client, sock, length, zvrf, 1);
+#endif
       break;
     case ZEBRA_INTERFACE_DISABLE_RADV:
+#if defined (HAVE_RTADV)
       zebra_interface_radv_set (client, sock, length, zvrf, 0);
+#endif
       break;
     case ZEBRA_MPLS_LABELS_ADD:
     case ZEBRA_MPLS_LABELS_DELETE: