mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 22:26:28 +00:00
zebra: fix recent MP-BGP commits for FreeBSD
This commit is contained in:
parent
cb32fd690a
commit
6eac79a6fe
@ -906,7 +906,7 @@ rtm_read (struct rt_msghdr *rtm)
|
||||
*/
|
||||
if (rtm->rtm_type == RTM_CHANGE)
|
||||
rib_delete_ipv4 (ZEBRA_ROUTE_KERNEL, zebra_flags, &p,
|
||||
NULL, 0, 0);
|
||||
NULL, 0, 0, SAFI_UNICAST);
|
||||
|
||||
if (rtm->rtm_type == RTM_GET
|
||||
|| rtm->rtm_type == RTM_ADD
|
||||
@ -915,7 +915,7 @@ rtm_read (struct rt_msghdr *rtm)
|
||||
&p, &gate.sin.sin_addr, NULL, 0, 0, 0, 0, SAFI_UNICAST);
|
||||
else
|
||||
rib_delete_ipv4 (ZEBRA_ROUTE_KERNEL, zebra_flags,
|
||||
&p, &gate.sin.sin_addr, 0, 0);
|
||||
&p, &gate.sin.sin_addr, 0, 0, SAFI_UNICAST);
|
||||
}
|
||||
#ifdef HAVE_IPV6
|
||||
if (dest.sa.sa_family == AF_INET6)
|
||||
@ -948,16 +948,16 @@ rtm_read (struct rt_msghdr *rtm)
|
||||
*/
|
||||
if (rtm->rtm_type == RTM_CHANGE)
|
||||
rib_delete_ipv6 (ZEBRA_ROUTE_KERNEL, zebra_flags, &p,
|
||||
NULL, 0, 0);
|
||||
NULL, 0, 0, SAFI_UNICAST);
|
||||
|
||||
if (rtm->rtm_type == RTM_GET
|
||||
|| rtm->rtm_type == RTM_ADD
|
||||
|| rtm->rtm_type == RTM_CHANGE)
|
||||
rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, zebra_flags,
|
||||
&p, &gate.sin6.sin6_addr, ifindex, 0, 0, 0);
|
||||
&p, &gate.sin6.sin6_addr, ifindex, 0, 0, 0, SAFI_UNICAST);
|
||||
else
|
||||
rib_delete_ipv6 (ZEBRA_ROUTE_KERNEL, zebra_flags,
|
||||
&p, &gate.sin6.sin6_addr, ifindex, 0);
|
||||
&p, &gate.sin6.sin6_addr, ifindex, 0, SAFI_UNICAST);
|
||||
}
|
||||
#endif /* HAVE_IPV6 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user