From c05a738b3167e069fa6fe783bf61560ac50ff62e Mon Sep 17 00:00:00 2001 From: mitesh Date: Wed, 13 Dec 2017 15:04:44 -0800 Subject: [PATCH] zebra: NUD_STALE is only valid in GNU linux Signed-off-by: Mitesh Kanjariya --- zebra/zebra_vxlan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 8c06298ec5..93a136e9aa 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -3230,6 +3230,7 @@ static int zl3vni_remote_nh_del(zebra_l3vni_t *zl3vni, static int zl3vni_local_nh_add_update(zebra_l3vni_t *zl3vni, struct ipaddr *ip, u_int16_t state) { +#ifdef GNU_LINUX zebra_neigh_t *n = NULL; n = zl3vni_nh_lookup(zl3vni, ip); @@ -3241,7 +3242,7 @@ static int zl3vni_local_nh_add_update(zebra_l3vni_t *zl3vni, */ if (state & NUD_STALE) zl3vni_nh_install(zl3vni, n); - +#endif return 0; } -- 2.39.5