mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
parent
319d540115
commit
0966f80ff7
@ -523,16 +523,11 @@ struct stream *bpacket_reformat_for_peer(struct bpacket *pkt,
|
|||||||
gnh_modified = 1;
|
gnh_modified = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (peer->nexthop.v4.s_addr != INADDR_ANY &&
|
if (IN6_IS_ADDR_UNSPECIFIED(mod_v6nhg)) {
|
||||||
(IN6_IS_ADDR_UNSPECIFIED(mod_v6nhg) ||
|
if (peer->nexthop.v4.s_addr != INADDR_ANY) {
|
||||||
(peer->connection->su.sa.sa_family == AF_INET &&
|
ipv4_to_ipv4_mapped_ipv6(mod_v6nhg,
|
||||||
paf->afi == AFI_IP6))) {
|
peer->nexthop.v4);
|
||||||
/* set a IPv4 mapped IPv6 address if no global IPv6
|
}
|
||||||
* address is found or if announcing IPv6 prefix
|
|
||||||
* over an IPv4 BGP session.
|
|
||||||
*/
|
|
||||||
ipv4_to_ipv4_mapped_ipv6(mod_v6nhg, peer->nexthop.v4);
|
|
||||||
gnh_modified = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_MAPPED_IPV6(&peer->nexthop.v6_global)) {
|
if (IS_MAPPED_IPV6(&peer->nexthop.v6_global)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user