mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 10:37:29 +00:00
zebra: NUD_STALE is only valid in GNU linux
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
parent
c3004bc483
commit
c05a738b31
@ -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,
|
static int zl3vni_local_nh_add_update(zebra_l3vni_t *zl3vni,
|
||||||
struct ipaddr *ip, u_int16_t state)
|
struct ipaddr *ip, u_int16_t state)
|
||||||
{
|
{
|
||||||
|
#ifdef GNU_LINUX
|
||||||
zebra_neigh_t *n = NULL;
|
zebra_neigh_t *n = NULL;
|
||||||
|
|
||||||
n = zl3vni_nh_lookup(zl3vni, ip);
|
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)
|
if (state & NUD_STALE)
|
||||||
zl3vni_nh_install(zl3vni, n);
|
zl3vni_nh_install(zl3vni, n);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user