Skip to content

Commit

Permalink
Revert "Merge pull request #15368 from louis-6wind/fix-6pe"
Browse files Browse the repository at this point in the history
This reverts commit df98e88, reversing
changes made to b652119.
  • Loading branch information
Jafaral committed Aug 21, 2024
1 parent 0097489 commit 578c046
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 838 deletions.
15 changes: 5 additions & 10 deletions bgpd/bgp_updgrp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,16 +523,11 @@ struct stream *bpacket_reformat_for_peer(struct bpacket *pkt,
gnh_modified = 1;
}

if (peer->nexthop.v4.s_addr != INADDR_ANY &&
(IN6_IS_ADDR_UNSPECIFIED(mod_v6nhg) ||
(peer->connection->su.sa.sa_family == AF_INET &&
paf->afi == AFI_IP6))) {
/* 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 (IN6_IS_ADDR_UNSPECIFIED(mod_v6nhg)) {
if (peer->nexthop.v4.s_addr != INADDR_ANY) {
ipv4_to_ipv4_mapped_ipv6(mod_v6nhg,
peer->nexthop.v4);
}
}

if (IS_MAPPED_IPV6(&peer->nexthop.v6_global)) {
Expand Down
Empty file.
4 changes: 0 additions & 4 deletions tests/topotests/bgp_6vpe_ebgp_topo1/h1/zebra.conf

This file was deleted.

8 changes: 0 additions & 8 deletions tests/topotests/bgp_6vpe_ebgp_topo1/h2/zebra.conf

This file was deleted.

13 changes: 0 additions & 13 deletions tests/topotests/bgp_6vpe_ebgp_topo1/pe1/bgp_summary.json

This file was deleted.

116 changes: 0 additions & 116 deletions tests/topotests/bgp_6vpe_ebgp_topo1/pe1/bgp_vrf_ipv6.json

This file was deleted.

32 changes: 0 additions & 32 deletions tests/topotests/bgp_6vpe_ebgp_topo1/pe1/bgpd.conf

This file was deleted.

142 changes: 0 additions & 142 deletions tests/topotests/bgp_6vpe_ebgp_topo1/pe1/ipv6_routes_vrf.json

This file was deleted.

23 changes: 0 additions & 23 deletions tests/topotests/bgp_6vpe_ebgp_topo1/pe1/isisd.conf

This file was deleted.

11 changes: 0 additions & 11 deletions tests/topotests/bgp_6vpe_ebgp_topo1/pe1/zebra.conf

This file was deleted.

13 changes: 0 additions & 13 deletions tests/topotests/bgp_6vpe_ebgp_topo1/pe2/bgp_summary.json

This file was deleted.

Loading

0 comments on commit 578c046

Please sign in to comment.