Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/revert ipv4 mapped ipv6 stuff 10.1 v2 #30

Open
wants to merge 513 commits into
base: stable/10.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
513 commits
Select commit Hold shift + click to select a range
5a70378
ospfd: fix internal ldp-sync state flags when feature is disabled
c-po Jul 13, 2024
55be38d
doc: adjust some commands for pim/pimv6 bsr
anlancs Jul 17, 2024
e36e570
zebra: add nexthop counter to 'show zebra dplane' command
pguibert6WIND Jul 17, 2024
329a419
yang: Fixed pyang warnings at frr-bfdd yang file
y-bharath14 Jul 17, 2024
8b81f32
bgpd: fix label lost when vrf loopback comes back
Jul 16, 2024
c21c597
bgpd: do not update leak label at loopback up down
Jul 17, 2024
3a567e8
Merge pull request #16411 from anlancs/fix/doc-bsr
eqvinox Jul 17, 2024
ddc1c2e
tests: OSPFv3 hello tests investigation, make assert output unique
nabahr Jul 17, 2024
55de91d
nhrpd: Fixes auth config change bug
dleroy Jul 17, 2024
8dae5cf
Merge pull request #16269 from nabahr/router_pim_config
riw777 Jul 18, 2024
272077d
Merge pull request #16417 from LabNConsulting/dleroy/nhrpd-noauth-fix
Jafaral Jul 18, 2024
c531584
nhrpd: Fixes auth no redirect bug
dleroy Jul 18, 2024
f0ae1e8
Merge pull request #16415 from nabahr/ospfv3_hello_tests
riw777 Jul 18, 2024
3929f84
Merge pull request #16409 from louis-6wind/statedir
ton31337 Jul 19, 2024
e8169f9
bgpd: Show extended parameters support for the OPEN messages
ton31337 Jul 19, 2024
c4bbb5b
bgpd: backpressure - fix ret value evpn_route_select_install
raja-rajasekar Jul 17, 2024
6cf5b79
bgpd: backpressure - log error for evpn when route install to zebra f…
raja-rajasekar Jul 19, 2024
8e5e19b
yang: Corrected range in yang file
y-bharath14 Jul 16, 2024
0b138e9
Merge pull request #16422 from LabNConsulting/dleroy/nhrpd-auth-redir…
Jafaral Jul 19, 2024
7aeb51e
Merge pull request #16406 from opensourcerouting/fix/remove_deprecati…
Jafaral Jul 19, 2024
9de961d
Merge pull request #16423 from opensourcerouting/fix/show_if_the_open…
Jafaral Jul 19, 2024
d022a40
tools: Do not append an empty list (pim_vrfs) to the config lines
ton31337 Jul 20, 2024
01b7bd3
tools: Apply black formatting for the recent frr-reload.py changes
ton31337 Jul 20, 2024
eb30bd3
Merge pull request #16392 from y-bharath14/srib-yang-a
ton31337 Jul 20, 2024
2332473
Merge pull request #16412 from y-bharath14/srib-yang-b
ton31337 Jul 20, 2024
44ee7a4
tests: Fix warnings in `bgp_srv6l3vpn_to_bgp_vrf`
cscarpitta Jul 21, 2024
5d76346
tests: Fix warnings in `bgp_srv6l3vpn_to_bgp_vrf2`
cscarpitta Jul 21, 2024
e3282e2
tests: Fix warnings in `bgp_srv6l3vpn_to_bgp_vrf3`
cscarpitta Jul 21, 2024
b681686
Merge pull request #16426 from cscarpitta/fix/remove-annoying-topotes…
Jafaral Jul 21, 2024
04b818d
Merge pull request #16425 from opensourcerouting/fix/do_not_prepend_a…
Jafaral Jul 21, 2024
1f24bbe
bgpd: changes for code maintainability
sri-mohan1 Jul 17, 2024
8eb78b2
Merge pull request #16341 from crosser/preserve-needed-rmacs
ton31337 Jul 22, 2024
89cc57d
Merge pull request #16408 from sri-mohan1/srib-24-zebra-e
ton31337 Jul 22, 2024
ed832b7
yang: Added missed prefix to the yang file
y-bharath14 Jul 22, 2024
7afd7d9
lib: move non-error from __log_err to __dbg
choppsv1 Jul 22, 2024
f2d5bf7
Merge pull request #16429 from LabNConsulting/chopps/fix-bad-log
donaldsharp Jul 22, 2024
7b0b8a8
pimd: fix compile warnings
Jafaral Jul 22, 2024
703beba
Merge pull request #16309 from louis-6wind/fix-pim-crash
donaldsharp Jul 22, 2024
40965e5
bgpd: backpressure - Avoid use after free
raja-rajasekar Jul 22, 2024
5df7159
Merge pull request #16407 from opensourcerouting/fix/ignore_alias_for…
Jafaral Jul 22, 2024
2ef7b65
Merge pull request #16432 from Jafaral/pim-warn
mjstapp Jul 23, 2024
c804446
Merge pull request #16437 from raja-rajasekar/rajasekarr/use_after_fr…
ton31337 Jul 23, 2024
9db9128
Merge pull request #16330 from donaldsharp/nhg_going_down
riw777 Jul 23, 2024
fba472e
Merge pull request #16376 from c-po/ospfd-ldp-sync
riw777 Jul 23, 2024
ea5498e
Merge pull request #16403 from lsang6WIND/vpn_leak_label
riw777 Jul 23, 2024
8916953
build: fix a few python string escape warnings
eqvinox Jul 23, 2024
aa9d66e
Merge pull request #16410 from pguibert6WIND/show_zebra_dplane_nexthop
riw777 Jul 23, 2024
be9a6fc
lib: mgmtd: fix too early daemon detach of mgmtd
choppsv1 Jul 23, 2024
15fb720
bgpd: fix ipv4-mapped ipv6 for ipv6 over ipv4 peer
louis-6wind Jul 22, 2024
6e8897f
bgpd: fix nexthop resolution of ipv4-mapped ipv6
louis-6wind Jul 22, 2024
5d2289d
bgpd: replace ipv4-mapped ipv6 at update forwarding
louis-6wind Jul 23, 2024
d618436
topotests: bgp_nexthop_mp_ipv4_6, test ipv4-mapped
louis-6wind Jul 23, 2024
1fddc91
Merge pull request #16428 from y-bharath14/srib-yang-c
choppsv1 Jul 24, 2024
91e67ab
tests: Delay initial OPEN after we do `clear bgp`
ton31337 Jul 24, 2024
45f80de
bgpd: Pass a connection struct directly for EVENT_OFF()
ton31337 Jul 24, 2024
5bb0b01
Merge pull request #16451 from LabNConsulting/chopps/fix-early-mgmtd-…
donaldsharp Jul 24, 2024
a694be6
Merge pull request #16240 from y-bharath14/srib-topotest-f
donaldsharp Jul 24, 2024
b2654e3
Merge pull request #16232 from zhou-run/202406171755
donaldsharp Jul 24, 2024
eab469b
Merge pull request #16456 from opensourcerouting/fix/delay_open_when_…
donaldsharp Jul 24, 2024
bd86964
Merge pull request #16455 from opensourcerouting/fix/bgp_gr_notificat…
donaldsharp Jul 24, 2024
0a68626
zebra: Remove duplicate `#include <netinet/in.h>`
cscarpitta Jul 24, 2024
c432aa0
zebra: Remove duplicate `#include <arpa/inet.h>`
cscarpitta Jul 24, 2024
22aa0ff
zebra: Remove duplicate `#include <stdlib.h>`
cscarpitta Jul 24, 2024
4ca8332
zebra: Remove duplicate `#include <string.h>`
cscarpitta Jul 24, 2024
8b206b0
zebra: Remove duplicate `#include <stdio.h>`
cscarpitta Jul 24, 2024
bcf7bc1
zebra: Remove duplicate `#include "zebra/debug.h"`
cscarpitta Jul 24, 2024
e2cb3ab
zebra: Remove duplicate `#include "zebra/interface.h"`
cscarpitta Jul 24, 2024
846bbcb
zebra: Remove duplicate `#include "zebra/interface.h"`
cscarpitta Jul 24, 2024
7b91b0b
doc: Add RFC 5701 to the supported RFCs list
ton31337 Jul 25, 2024
743b169
bgpd: Set the last_reset if we change the password also
ton31337 Jul 25, 2024
fa9bd07
bgpd: Keep the last reset reason before we reset the peer
ton31337 Jul 25, 2024
b1b1c92
bgpd: Do not increment treat-as-withdraw counters if debug is enabled
ton31337 Jul 25, 2024
30bbba1
Merge pull request #16469 from opensourcerouting/fix/add_5701_supported
donaldsharp Jul 25, 2024
035542f
Merge pull request #16449 from opensourcerouting/py-invalid-escapes
donaldsharp Jul 25, 2024
c4b4c24
pimd: Fix msdp setting of sa->rp
donaldsharp Jul 25, 2024
7ccd9ca
Merge pull request #16464 from cscarpitta/fix/remove-duplicate-include
donaldsharp Jul 25, 2024
968ae85
bgpd: Show software version in bgp summary
ton31337 Jul 25, 2024
88a9aa9
bfdd: remove control socket obsolete code
rzalamena Jul 16, 2024
5340fcf
doc: missing distributed BFD man page bit
rzalamena Jul 24, 2024
c4867fe
doc: remove BFD control socket documentation
rzalamena Jul 24, 2024
3ddf5cf
Merge pull request #16041 from sri-mohan1/srib-24-zebra-d
mobash-rasool Jul 25, 2024
4e7f4d0
Merge pull request #16470 from opensourcerouting/fix/keep_last_reset_…
donaldsharp Jul 25, 2024
23c756c
Merge pull request #16472 from donaldsharp/msdp_bug
ton31337 Jul 25, 2024
353efe7
Merge pull request #16416 from raja-rajasekar/rajasekarr/fix_logs_bp
ton31337 Jul 25, 2024
67e2718
lib: remove duplicated flex_algos_free prototype
louis-6wind Jul 26, 2024
9c0e668
isisd: move flex_algo_delete into flex_algo_destroy
louis-6wind Jul 26, 2024
ae27101
isisd: fix building asla at first flex-algo config
louis-6wind Jul 25, 2024
e3634cb
isisd: free asla at last flex-algo unconfiguration
louis-6wind Jul 26, 2024
07489b4
Merge pull request #16473 from opensourcerouting/fix/add_soft_version…
donaldsharp Jul 26, 2024
f7eac63
Merge pull request #16471 from opensourcerouting/fix/treat_as_withdra…
donaldsharp Jul 26, 2024
5856bf1
Merge pull request #16467 from louis-6wind/fix-flex-algo-asla
donaldsharp Jul 26, 2024
1f5a663
Merge pull request #16463 from opensourcerouting/bfd-remove-control-s…
donaldsharp Jul 26, 2024
c682ddd
tests: Increase timing of bgp_duplicate_nexthop
donaldsharp Jul 23, 2024
6914cce
tests: Fix test_bgp_vpnv4_per_nexthop_label.py to handle timing changes
donaldsharp Jul 26, 2024
77a296c
tests: Fix test_bgp_vpnv6_per_nexthop_label.py to handle timing changes
donaldsharp Jul 26, 2024
ce3cea3
tests: Run black on bgp_vpnv[4|6]_per_nexthop_label
donaldsharp Jul 26, 2024
7f10381
Merge pull request #15797 from pguibert6WIND/isis_srv6_ls_subnet
riw777 Jul 26, 2024
7c20ffa
nhrpd: fixes duplicate auth extension
dleroy Jul 25, 2024
bfae003
yang: MSDP SA filtering support
rzalamena May 3, 2021
be3bfe5
pimd: MSDP SA filtering
rzalamena May 3, 2021
ae31d9b
doc: document new MSDP filter command
rzalamena May 3, 2021
7b650fb
topotests: test MSDP SA filtering
rzalamena Dec 9, 2022
7ac16c9
Merge pull request #16485 from donaldsharp/test_fixes
eqvinox Jul 27, 2024
e64d15b
tests: Test MSDP RPF
adrianomarto Jul 28, 2024
04f9372
bgpd: Do not process VRF import/export to/from auto created VRF insta…
ton31337 Jul 28, 2024
460703f
tests: add wait to RequireVpnRoutes, RequireUnicastRoutes
paulzlabn Jul 27, 2024
593677b
Merge pull request #16491 from opensourcerouting/fix/crash_bgp_auto_vrf
donaldsharp Jul 28, 2024
9ce5a04
Merge pull request #16490 from adrianomarto/master
donaldsharp Jul 28, 2024
bc50bcb
Merge pull request #16492 from LabNConsulting/ziemba/topotests-lib-bg…
donaldsharp Jul 29, 2024
1877596
Merge pull request #12484 from opensourcerouting/msdp-filter
donaldsharp Jul 29, 2024
13126de
yang: MSDP authentication support
rzalamena Dec 6, 2022
bd838d8
pimd: add support for MSDP authentication
rzalamena Dec 7, 2022
2d206c8
doc: document MSDP authentication and reset
rzalamena May 10, 2022
a2209b5
lib: define constant for plataforms missing it
rzalamena May 10, 2022
e900c9b
topotests: test MSDP authentication
rzalamena May 10, 2021
6186368
Merge pull request #16480 from LabNConsulting/dleroy/nhrpd-duplicate-…
donaldsharp Jul 29, 2024
b8747d8
Merge pull request #12459 from opensourcerouting/msdp-auth-v2
donaldsharp Jul 30, 2024
e53fa58
zebra: Fix removal of routes on MetaQ when client goes down
donaldsharp Jul 30, 2024
43b9faf
Merge pull request #16494 from donaldsharp/gr_meta_q
riw777 Jul 30, 2024
292dc38
Merge pull request #16178 from y-bharath14/srib-babel-code-refactoring
mjstapp Jul 30, 2024
3dec216
doc: Add some topotest documentation about how to reproduce failures
donaldsharp Jul 30, 2024
26eceb2
Merge pull request #16496 from donaldsharp/topotest_hints
riw777 Jul 30, 2024
0998b38
bgpd: Check the actual remaining stream length before taking TLV value
ton31337 Jul 31, 2024
9c710ee
bgpd: Use bgp_session_reset_safe() for GR update all peers
ton31337 Jul 31, 2024
2419fc5
bgpd: Show which AFI is affected when prefix-list is not found
ton31337 Jul 31, 2024
05e9159
lib: remove unused vector_copy()
eqvinox Jul 21, 2024
0bf6645
lib: allow static/pre-initialized vectors
eqvinox Jul 21, 2024
67a7689
tools/checkpatch: recognize `+` as unary operator
eqvinox Jul 21, 2024
cf37c79
lib/clippy: dynamically wrap graph nodes
eqvinox Jul 20, 2024
7fb8729
lib/clippy: allow creating empty graph
eqvinox Jul 20, 2024
34a4f85
lib/clippy: wrap cmd_graph_merge via Graph.merge()
eqvinox Jul 20, 2024
f85e58a
lib/clippy: add a __repr__ for graph nodes
eqvinox Jul 20, 2024
8511f39
lib/clippy: allow accessing graph nodes by index
eqvinox Jul 20, 2024
3c1556f
lib/clippy: expose graph nodes' back pointers
eqvinox Jul 20, 2024
e234420
lib/clippy: expose JOIN_TKN's fork node
eqvinox Jul 21, 2024
cb9d20b
lib/clippy: improve graph node member access
eqvinox Jul 21, 2024
ece3132
lib/clippy: add `CMD_ELEMENT_TKN`
eqvinox Jul 21, 2024
e26c580
vtysh: de-conditionalize and reorder install_node
eqvinox Jul 21, 2024
4bc4119
vtysh, lib: preprocess CLI graphs
eqvinox Jul 21, 2024
3d56a1b
Merge pull request #16497 from opensourcerouting/fix/tunel_encap
donaldsharp Jul 31, 2024
3b3fff4
Merge pull request #16500 from opensourcerouting/fix/show_afi_when_pr…
donaldsharp Jul 31, 2024
d6d49f2
pimd: fix possible NULL dereference
rzalamena Jul 31, 2024
6f2aea5
tests: Increase route_scale timeouts
donaldsharp Jul 31, 2024
08bf9cd
tests: Shorten reconnect timer when something goes wrong
donaldsharp Jul 31, 2024
b52346e
tests: need aggressive timers in bgp_route_map_match_ipv6_nexthop
donaldsharp Jul 31, 2024
9af1f5e
tests: need aggressive timers in bgp_prefix_list_any
donaldsharp Jul 31, 2024
6bdc90b
Merge pull request #16499 from opensourcerouting/fix/bgp_session_rese…
donaldsharp Aug 1, 2024
fd59fa1
Merge pull request #16509 from opensourcerouting/pim-cid-1598684
donaldsharp Aug 1, 2024
e38dfe0
Merge pull request #16510 from donaldsharp/test_timing_fixes
Jafaral Aug 1, 2024
975e1a3
Merge pull request #16501 from donaldsharp/preprocess_vtysh
mjstapp Aug 2, 2024
1d181df
bgpd: Clear previously allocated capabilities values before parsing a…
ton31337 Aug 6, 2024
0e1088c
Merge pull request #16521 from opensourcerouting/fix/capability_toggles
donaldsharp Aug 7, 2024
2ee9f4d
tests: wait for test client to connect before running test
choppsv1 Aug 7, 2024
14b5c78
bgpd: Remove BGP_UPDATE_DELAY_MIN/MAX
ton31337 Aug 7, 2024
d36ff6d
Merge pull request #16523 from LabNConsulting/chopps/fix-mgmt-rpc-test
donaldsharp Aug 7, 2024
61e8d5e
mgmtd: don't add implicit state data when reading config from file
idryzhov Aug 7, 2024
d304714
Merge pull request #16525 from opensourcerouting/fix/remove_BGP_UPDAT…
donaldsharp Aug 7, 2024
2b12d62
lib: fix crash on distribute-list delete
idryzhov Aug 7, 2024
25d94ec
ripd: fix show run output for distribute-list
idryzhov Aug 7, 2024
850076b
tools: Fix python string escape warnings for frr-reload.py
ton31337 Aug 7, 2024
5d027fc
lib: add seg6localContext json attribute in nexthop information
pguibert6WIND Aug 8, 2024
e7fd713
Merge pull request #16530 from idryzhov/fix-no-distrib-crash
donaldsharp Aug 8, 2024
000ad7f
Merge pull request #16526 from opensourcerouting/fix/invalid_escape_c…
Jafaral Aug 8, 2024
5891afb
sharpd: Eliminate leaked list for locator-chunks
donaldsharp Aug 8, 2024
b44972b
isisd: Free up memory associated with rm/vrf's
donaldsharp Aug 8, 2024
2e7d915
isisd: Cleanup leaked hash on shut in circuit
donaldsharp Aug 8, 2024
bc16c8c
isisd: Free up isis master list of instances
donaldsharp Aug 8, 2024
db986ad
lib: Cleanup memory associated with modules on shutdown
donaldsharp Aug 8, 2024
208c53c
isisd, lib: Cleanup linked list associated with snmp
donaldsharp Aug 8, 2024
7b8ca3e
Merge pull request #16531 from idryzhov/fix-rip-show-distrib
donaldsharp Aug 8, 2024
cecf571
lib: Don't print warning if not a daemon
donaldsharp Aug 8, 2024
536d478
Merge pull request #16535 from pguibert6WIND/srv6_nexthop_context
ton31337 Aug 8, 2024
927be7a
Merge pull request #16539 from donaldsharp/tests_memory_shut
ton31337 Aug 9, 2024
3eb7d16
isisd: fix memory handling in isis_adj_process_threeway()
Aug 9, 2024
8b66a23
bgpd: Reduce encap_tunneltype to 1 byte
ton31337 Aug 9, 2024
5c84cdd
bgpd: Shrink rmap_change_flags to 2-bytes
ton31337 Aug 9, 2024
8fad4f3
lib: fix distribute-list deletion
idryzhov Aug 9, 2024
87c9060
lib: Fix LYD_NEW_PATH_OUTPUT issue to support libyang v3.x
oplklum Aug 1, 2024
64ac03c
Merge pull request #16511 from oplklum/master
choppsv1 Aug 10, 2024
8cc8320
Merge pull request #16529 from idryzhov/fix-load-config
choppsv1 Aug 10, 2024
5a1b61a
zebra: Ensure non-equal id's are not same nhg's
donaldsharp Aug 10, 2024
c79599e
Merge pull request #16551 from idryzhov/distrib-del
donaldsharp Aug 10, 2024
3875588
Merge pull request #16548 from opensourcerouting/fix/reduce_attr_a_bit
donaldsharp Aug 10, 2024
0ec96ab
mgmtd: Add to .gitignore for mgmtd_testc program
donaldsharp Aug 11, 2024
423e807
Merge pull request #16542 from donaldsharp/vtysh_stupidly_large
ton31337 Aug 11, 2024
79cbde8
tests: Convert self.unified_config to boolean
ton31337 Aug 11, 2024
3901cfe
doc: Document on how to run specific daemons with unified config in t…
ton31337 Aug 11, 2024
4ace11d
bgpd: Move evpn_overlay to a pointer
ton31337 Aug 11, 2024
d95f9a3
bgpd, doc: add bgp snmp traps rfc4382 command
pguibert6WIND Jul 18, 2024
263eb6d
Merge pull request #16554 from donaldsharp/zebra_ensure_no_use_after_…
ton31337 Aug 12, 2024
8c936d4
Merge pull request #16420 from pguibert6WIND/trap_rfc4382
ton31337 Aug 12, 2024
1d5f0a2
Merge pull request #16556 from donaldsharp/mgmt_ignore
ton31337 Aug 12, 2024
4e20808
Merge pull request #16545 from mjstapp/fix_isis_threeway
ton31337 Aug 12, 2024
cc0fdd3
Merge pull request #16439 from louis-6wind/fix-ipv4-mapped-ipv6
ton31337 Aug 12, 2024
b8b38a5
lib: Fix memory leak in snmp on shutdown
donaldsharp Aug 9, 2024
33af3c0
pathd: Cleanup shutdown memory leaks
donaldsharp Aug 12, 2024
c4fdc83
Merge pull request #16534 from opensourcerouting/fix/start_ldpd_if_un…
donaldsharp Aug 12, 2024
1563d9f
tests: Fix bgp_duplicate_nexthop python warning
donaldsharp Aug 12, 2024
33ce5d2
doc: Fix up pim user docs.
nabahr Aug 12, 2024
7433379
Merge pull request #16555 from donaldsharp/agentx_event_leak
ton31337 Aug 12, 2024
b4e4fb4
Merge pull request #16557 from donaldsharp/pathd_shutdown_memory_leaks
ton31337 Aug 12, 2024
847d74a
Merge pull request #16558 from nabahr/pim_doc
donaldsharp Aug 13, 2024
ce4e451
bgpd: Free up non-freed json memory on function return
donaldsharp Aug 13, 2024
2de9d71
doc: Add doc to show sysctl setting for Sanitizers
donaldsharp Aug 13, 2024
b0bb8cb
Merge pull request #16559 from donaldsharp/fix_python_warning
ton31337 Aug 13, 2024
1e288c9
zebra: Do not forget to free opaque data for route entry
ton31337 Aug 13, 2024
f01205b
pbrd: Call vrf_terminate on shutdown
donaldsharp Aug 13, 2024
68fff49
babeld: Free up memory on shutdown
donaldsharp Aug 13, 2024
90a50fd
Merge pull request #16576 from opensourcerouting/fix/free_opaque_data…
donaldsharp Aug 13, 2024
e03feca
Merge pull request #16575 from donaldsharp/doc_address_sanitizer_stuff
mjstapp Aug 13, 2024
464212d
bgpd: Avoid use-after-free when doing `no router bgp` with auto creat…
ton31337 Aug 14, 2024
dd14661
tests: add retries to nhg tests in all_proto_startup
Aug 14, 2024
9356e3f
Merge pull request #16579 from opensourcerouting/fix/bgpd_use_after_f…
donaldsharp Aug 14, 2024
64594f8
bgpd: fix memory type for static->prd_pretty
pguibert6WIND Aug 14, 2024
b0c8680
tests: Fix route_scale startup issues
donaldsharp Aug 14, 2024
b57cb7a
Merge pull request #16574 from donaldsharp/non_json_free_ptr
ton31337 Aug 14, 2024
88c6471
Revert "bgpd: fix sending ipv6 local nexthop if global present"
ton31337 Aug 14, 2024
e85077c
Revert "bgpd: log new ipv6 global in bgp_interface_address_add"
ton31337 Aug 14, 2024
0a7e971
Revert "bgpd: reduce bgp_interface_address_add indentation"
ton31337 Aug 14, 2024
8a7c4c0
Revert "bgpd: optimize bgp_interface_address_add"
ton31337 Aug 14, 2024
efd8f61
Revert "topotests: update bgp_vrf_leaking_5549_routes"
ton31337 Aug 14, 2024
863da18
Revert "bgpd: prefer link-local to a ipv4-mapped ipv6 global"
ton31337 Aug 14, 2024
8dffec1
Revert "bgpd: set ipv4-mapped ipv6 for ipv4 with ipv6 nexthop"
ton31337 Aug 14, 2024
9a5c3b9
Revert "tests: ipv6 global removal in bgp_nexthop_mp_ipv4_6"
ton31337 Aug 14, 2024
3e7094e
Revert "bgpd: fix "used" json key on link-local nexthop"
ton31337 Aug 14, 2024
2fd44b1
Revert "bgpd: fix removing ipv6 global nexhop"
ton31337 Aug 14, 2024
72b4ca5
Revert "bgpd: optimize bgp_interface_address_del"
ton31337 Aug 14, 2024
9e3aa8c
Revert "topotests: add bgp_nexthop_mp_ipv4_6 test"
ton31337 Aug 14, 2024
28df446
Merge pull request #16583 from mjstapp/fix_all_proto_nhg
donaldsharp Aug 14, 2024
93032f1
Merge pull request #16578 from donaldsharp/more_memory_leaks_on_shutdown
ton31337 Aug 14, 2024
4f70004
Merge pull request #16585 from pguibert6WIND/prd_pretty_mt_fix
ton31337 Aug 15, 2024
89a3879
Merge pull request #16549 from opensourcerouting/fix/some_memory_opti…
donaldsharp Aug 15, 2024
6de8091
Merge pull request #16586 from donaldsharp/fix_route_scale_startup
mjstapp Aug 15, 2024
db12dcc
Merge remote-tracking branch 'refs/remotes/origin/master' into fix/re…
RodrigoMNardi Aug 15, 2024
91a0edb
doc: bgp_vty fixing default name
RodrigoMNardi Aug 15, 2024
e5030e5
doc: bgp_vty fixing default name
RodrigoMNardi Aug 15, 2024
66c9bb3
Revert "bgpd: fix sending ipv6 local nexthop if global present"
ton31337 Aug 14, 2024
2910840
Revert "bgpd: log new ipv6 global in bgp_interface_address_add"
ton31337 Aug 14, 2024
64d6da5
Revert "bgpd: reduce bgp_interface_address_add indentation"
ton31337 Aug 14, 2024
de1d794
Revert "bgpd: optimize bgp_interface_address_add"
ton31337 Aug 14, 2024
d10419e
Revert "topotests: update bgp_vrf_leaking_5549_routes"
ton31337 Aug 14, 2024
4e2d8db
Revert "bgpd: prefer link-local to a ipv4-mapped ipv6 global"
ton31337 Aug 14, 2024
8beb5c4
Revert "bgpd: set ipv4-mapped ipv6 for ipv4 with ipv6 nexthop"
ton31337 Aug 14, 2024
163a65d
Revert "tests: ipv6 global removal in bgp_nexthop_mp_ipv4_6"
ton31337 Aug 14, 2024
572b1c2
Revert "bgpd: fix "used" json key on link-local nexthop"
ton31337 Aug 14, 2024
63094de
Revert "bgpd: fix removing ipv6 global nexhop"
ton31337 Aug 14, 2024
8b537e0
Revert "bgpd: optimize bgp_interface_address_del"
ton31337 Aug 14, 2024
0b550c4
Revert "topotests: add bgp_nexthop_mp_ipv4_6 test"
ton31337 Aug 14, 2024
1755df9
Merge remote-tracking branch 'origin/fix/revert_ipv4_mapped_ipv6_stuf…
RodrigoMNardi Aug 16, 2024
3063083
Merge remote-tracking branch 'origin/master' into fix/revert_ipv4_map…
RodrigoMNardi Aug 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,8 @@ WhitespaceSensitiveMacros:
- "DEFUN_YANG_NOSH"
- "DEFUNSH"
- "DEFUNSH_HIDDEN"
- "ALIAS"
- "ALIAS_HIDDEN"
- "ALIAS_YANG"
- "ALIAS_DEPRECATED"
...
2 changes: 2 additions & 0 deletions alpine/APKBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ _libdir=/usr/lib
_user=frr

build() {
export ABUILD_APK_INDEX_OPTS="--allow-untrusted"

cd "$builddir"

./configure \
Expand Down
26 changes: 23 additions & 3 deletions babeld/babel_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ babel_interface_address_add (ZAPI_CALLBACK_ARGS)
if (prefix->family == AF_INET) {
flush_interface_routes(ifc->ifp, 0);
babel_ifp = babel_get_if_nfo(ifc->ifp);
assert (babel_ifp != NULL);
if (babel_ifp->ipv4 == NULL) {
babel_ifp->ipv4 = malloc(4);
if (babel_ifp->ipv4 == NULL) {
Expand Down Expand Up @@ -144,6 +145,7 @@ babel_interface_address_delete (ZAPI_CALLBACK_ARGS)
if (prefix->family == AF_INET) {
flush_interface_routes(ifc->ifp, 0);
babel_ifp = babel_get_if_nfo(ifc->ifp);
assert (babel_ifp != NULL);
if (babel_ifp->ipv4 != NULL
&& memcmp(babel_ifp->ipv4, &prefix->u.prefix4, IPV4_MAX_BYTELEN)
== 0) {
Expand Down Expand Up @@ -542,7 +544,10 @@ DEFPY (babel_set_channel,
unsigned
jitter(babel_interface_nfo *babel_ifp, int urgent)
{
unsigned interval = babel_ifp->hello_interval;
unsigned interval;

assert (babel_ifp != NULL);
interval = babel_ifp->hello_interval;
if(urgent)
interval = MIN(interval, 100);
else
Expand All @@ -553,7 +558,10 @@ jitter(babel_interface_nfo *babel_ifp, int urgent)
unsigned
update_jitter(babel_interface_nfo *babel_ifp, int urgent)
{
unsigned interval = babel_ifp->hello_interval;
unsigned interval;

assert (babel_ifp != NULL);
interval = babel_ifp->hello_interval;
if(urgent)
interval = MIN(interval, 100);
else
Expand All @@ -566,10 +574,11 @@ update_jitter(babel_interface_nfo *babel_ifp, int urgent)
static int
interface_recalculate(struct interface *ifp)
{
babel_interface_nfo *babel_ifp = babel_get_if_nfo(ifp);
unsigned char *tmp = NULL;
int mtu, rc;
struct ipv6_mreq mreq;
babel_interface_nfo *babel_ifp = babel_get_if_nfo(ifp);
assert (babel_ifp != NULL);

if (!IS_ENABLE(ifp))
return -1;
Expand Down Expand Up @@ -656,6 +665,7 @@ interface_reset(struct interface *ifp)
int rc;
struct ipv6_mreq mreq;
babel_interface_nfo *babel_ifp = babel_get_if_nfo(ifp);
assert (babel_ifp != NULL);

if (!CHECK_FLAG(babel_ifp->flags, BABEL_IF_IS_UP))
return 0;
Expand Down Expand Up @@ -777,6 +787,7 @@ show_babel_interface_sub (struct vty *vty, struct interface *ifp)
return;
}
babel_ifp = babel_get_if_nfo (ifp);
assert (babel_ifp != NULL);
vty_out (vty, " Babel protocol is running on this interface\n");
vty_out (vty, " Operating mode is \"%s\"\n",
CHECK_FLAG(babel_ifp->flags, BABEL_IF_WIRED) ? "wired" : "wireless");
Expand Down Expand Up @@ -1160,6 +1171,11 @@ DEFUN (show_babel_parameters,
return CMD_SUCCESS;
}

void babel_if_terminate(void)
{
vector_free(babel_enable_if);
}

void
babel_if_init(void)
{
Expand Down Expand Up @@ -1228,6 +1244,7 @@ interface_config_write (struct vty *vty)
if (ifp->desc)
vty_out (vty, " description %s\n",ifp->desc);
babel_interface_nfo *babel_ifp = babel_get_if_nfo (ifp);
assert (babel_ifp != NULL);
/* wireless is the default*/
if (CHECK_FLAG (babel_ifp->flags, BABEL_IF_WIRED))
{
Expand Down Expand Up @@ -1330,6 +1347,7 @@ babel_interface_allocate (void)
{
babel_interface_nfo *babel_ifp;
babel_ifp = XCALLOC(MTYPE_BABEL_IF, sizeof(babel_interface_nfo));
assert (babel_ifp != NULL);
/* All flags are unset */
babel_ifp->bucket_time = babel_now.tv_sec;
babel_ifp->bucket = BUCKET_TOKENS_MAX;
Expand All @@ -1349,6 +1367,8 @@ babel_interface_allocate (void)
static void
babel_interface_free (babel_interface_nfo *babel_ifp)
{
assert (babel_ifp != NULL);

if (babel_ifp->ipv4){
free(babel_ifp->ipv4);
babel_ifp->ipv4 = NULL;
Expand Down
1 change: 1 addition & 0 deletions babeld/babel_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ struct buffered_update {

/* init function */
void babel_if_init(void);
void babel_if_terminate(void);

/* Callback functions for zebra client */
int babel_interface_up (int, struct zclient *, zebra_size_t, vrf_id_t);
Expand Down
4 changes: 2 additions & 2 deletions babeld/babel_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ babel_exit_properly(void)

/* Uninstall and flush all routes. */
debugf(BABEL_DEBUG_COMMON, "Uninstall routes.");
flush_all_routes();
babel_interface_close_all();
babel_clean_routing_process();
babel_zebra_close_connexion();
babel_if_terminate();
babel_save_state_file();
debugf(BABEL_DEBUG_COMMON, "Remove pid file.");
debugf(BABEL_DEBUG_COMMON, "Done.");
Expand Down
3 changes: 1 addition & 2 deletions babeld/babeld.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ babel_initial_noise(void)
}

/* Delete all the added babel routes, make babeld only speak to zebra. */
static void
babel_clean_routing_process(void)
void babel_clean_routing_process(void)
{
flush_all_routes();
babel_interface_close_all();
Expand Down
1 change: 1 addition & 0 deletions babeld/babeld.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@ extern int redistribute_filter(const unsigned char *prefix, unsigned short plen,
extern int resize_receive_buffer(int size);
extern void schedule_neighbours_check(int msecs, int override);
extern struct babel *babel_lookup(void);
extern void babel_clean_routing_process(void);

#endif /* BABEL_BABELD_H */
82 changes: 10 additions & 72 deletions bfdd/bfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,19 +256,8 @@ void gen_bfd_key(struct bfd_key *key, struct sockaddr_any *peer,

struct bfd_session *bs_peer_find(struct bfd_peer_cfg *bpc)
{
struct bfd_session *bs;
struct peer_label *pl;
struct bfd_key key;

/* Try to find label first. */
if (bpc->bpc_has_label) {
pl = pl_find(bpc->bpc_label);
if (pl != NULL) {
bs = pl->pl_bs;
return bs;
}
}

/* Otherwise fallback to peer/local hash lookup. */
gen_bfd_key(&key, &bpc->bpc_peer, &bpc->bpc_local, bpc->bpc_mhop,
bpc->bpc_localif, bpc->bpc_vrfname);
Expand Down Expand Up @@ -327,10 +316,8 @@ int bfd_session_enable(struct bfd_session *bs)
bs->ifp = ifp;

/* Attempt to use data plane. */
if (bglobal.bg_use_dplane && bfd_dplane_add_session(bs) == 0) {
control_notify_config(BCM_NOTIFY_CONFIG_ADD, bs);
if (bglobal.bg_use_dplane && bfd_dplane_add_session(bs) == 0)
return 0;
}

/* Sanity check: don't leak open sockets. */
if (bs->sock != -1) {
Expand Down Expand Up @@ -410,8 +397,8 @@ static uint32_t ptm_bfd_gen_ID(void)
* random session identification numbers.
*/
do {
session_id = ((frr_weak_random() << 16) & 0xFFFF0000)
| (frr_weak_random() & 0x0000FFFF);
session_id = CHECK_FLAG((frr_weak_random() << 16), 0xFFFF0000) |
CHECK_FLAG(frr_weak_random(), 0x0000FFFF);
} while (session_id == 0 || bfd_id_lookup(session_id) != NULL);

return session_id;
Expand Down Expand Up @@ -502,7 +489,7 @@ void ptm_bfd_sess_up(struct bfd_session *bfd)
/* Start sending control packets with poll bit immediately. */
ptm_bfd_snd(bfd, 0);

control_notify(bfd, bfd->ses_state);
ptm_bfd_notify(bfd, bfd->ses_state);

if (old_state != bfd->ses_state) {
bfd->stats.session_up++;
Expand Down Expand Up @@ -538,7 +525,7 @@ void ptm_bfd_sess_dn(struct bfd_session *bfd, uint8_t diag)

/* only signal clients when going from up->down state */
if (old_state == PTM_BFD_UP)
control_notify(bfd, PTM_BFD_DOWN);
ptm_bfd_notify(bfd, PTM_BFD_DOWN);

/* Stop echo packet transmission if they are active */
if (CHECK_FLAG(bfd->flags, BFD_SESS_FLAG_ECHO_ACTIVE))
Expand Down Expand Up @@ -690,38 +677,6 @@ struct bfd_session *bfd_session_new(void)
return bs;
}

int bfd_session_update_label(struct bfd_session *bs, const char *nlabel)
{
/* New label treatment:
* - Check if the label is taken;
* - Try to allocate the memory for it and register;
*/
if (bs->pl == NULL) {
if (pl_find(nlabel) != NULL) {
/* Someone is already using it. */
return -1;
}

pl_new(nlabel, bs);

return 0;
}

/*
* Test label change consistency:
* - Do nothing if it's the same label;
* - Check if the future label is already taken;
* - Change label;
*/
if (strcmp(nlabel, bs->pl->pl_label) == 0)
return -1;
if (pl_find(nlabel) != NULL)
return -1;

strlcpy(bs->pl->pl_label, nlabel, sizeof(bs->pl->pl_label));
return 0;
}

static void _bfd_session_update(struct bfd_session *bs,
struct bfd_peer_cfg *bpc)
{
Expand Down Expand Up @@ -750,9 +705,6 @@ static void _bfd_session_update(struct bfd_session *bs,
bs->peer_profile.min_echo_tx = bs->timers.desired_min_echo_tx;
}

if (bpc->bpc_has_label)
bfd_session_update_label(bs, bpc->bpc_label);

if (bpc->bpc_cbit)
SET_FLAG(bs->flags, BFD_SESS_FLAG_CBIT);
else
Expand Down Expand Up @@ -792,8 +744,6 @@ static int bfd_session_update(struct bfd_session *bs, struct bfd_peer_cfg *bpc)

_bfd_session_update(bs, bpc);

control_notify_config(BCM_NOTIFY_CONFIG_UPDATE, bs);

return 0;
}

Expand All @@ -819,8 +769,6 @@ void bfd_session_free(struct bfd_session *bs)
if (bso != NULL)
bs_observer_del(bso);

pl_free(bs->pl);

XFREE(MTYPE_BFDD_PROFILE, bs->profile_name);
XFREE(MTYPE_BFDD_CONFIG, bs);
}
Expand Down Expand Up @@ -917,8 +865,6 @@ struct bfd_session *bs_registrate(struct bfd_session *bfd)
if (bglobal.debug_peer_event)
zlog_debug("session-new: %s", bs_to_string(bfd));

control_notify_config(BCM_NOTIFY_CONFIG_ADD, bfd);

return bfd;
}

Expand All @@ -941,8 +887,6 @@ int ptm_bfd_sess_del(struct bfd_peer_cfg *bpc)
if (bglobal.debug_peer_event)
zlog_debug("%s: %s", __func__, bs_to_string(bs));

control_notify_config(BCM_NOTIFY_CONFIG_DELETE, bs);

bfd_session_free(bs);

return 0;
Expand Down Expand Up @@ -1166,11 +1110,8 @@ void bs_final_handler(struct bfd_session *bs)
* When using demand mode we must disable the detection timer
* for lost control packets.
*/
if (bs->demand_mode) {
/* Notify watchers about changed timers. */
control_notify_config(BCM_NOTIFY_CONFIG_UPDATE, bs);
if (bs->demand_mode)
return;
}

/*
* Calculate transmission time based on new timers.
Expand All @@ -1189,9 +1130,6 @@ void bs_final_handler(struct bfd_session *bs)

/* Apply new transmission timer immediately. */
ptm_bfd_start_xmt_timer(bs, false);

/* Notify watchers about changed timers. */
control_notify_config(BCM_NOTIFY_CONFIG_UPDATE, bs);
}

void bs_set_slow_timers(struct bfd_session *bs)
Expand Down Expand Up @@ -1261,7 +1199,7 @@ void bfd_set_shutdown(struct bfd_session *bs, bool shutdown)
if (bs->bdc) {
bs->ses_state = PTM_BFD_ADM_DOWN;
bfd_dplane_update_session(bs);
control_notify(bs, bs->ses_state);
ptm_bfd_notify(bs, bs->ses_state);
return;
}

Expand All @@ -1273,7 +1211,7 @@ void bfd_set_shutdown(struct bfd_session *bs, bool shutdown)

/* Change and notify state change. */
bs->ses_state = PTM_BFD_ADM_DOWN;
control_notify(bs, bs->ses_state);
ptm_bfd_notify(bs, bs->ses_state);

/* Don't try to send packets with a disabled session. */
if (bs->sock != -1)
Expand All @@ -1289,13 +1227,13 @@ void bfd_set_shutdown(struct bfd_session *bs, bool shutdown)
if (bs->bdc) {
bs->ses_state = PTM_BFD_DOWN;
bfd_dplane_update_session(bs);
control_notify(bs, bs->ses_state);
ptm_bfd_notify(bs, bs->ses_state);
return;
}

/* Change and notify state change. */
bs->ses_state = PTM_BFD_DOWN;
control_notify(bs, bs->ses_state);
ptm_bfd_notify(bs, bs->ses_state);

/* Enable timers if non passive, otherwise stop them. */
if (CHECK_FLAG(bs->flags, BFD_SESS_FLAG_PASSIVE)) {
Expand Down
Loading
Loading