mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 09:22:32 +00:00
Revert "bgpd: set ipv4-mapped ipv6 for ipv4 with ipv6 nexthop"
This reverts commit fc5a738409
.
This commit is contained in:
parent
863da18d1e
commit
8dffec1c4e
@ -523,13 +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) {
|
||||||
(IN6_IS_ADDR_LINKLOCAL(mod_v6nhg) &&
|
ipv4_to_ipv4_mapped_ipv6(mod_v6nhg,
|
||||||
peer->connection->su.sa.sa_family == AF_INET6 &&
|
peer->nexthop.v4);
|
||||||
paf->afi == AFI_IP))) {
|
}
|
||||||
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