FRR Mirror
  1. FRR Mirror

FRR

Public
AuthorCommitMessageCommit dateIssues
Christian HoppsGitHubChristian Hopps
fa032c5e68bMMerge pull request #21253 from ashred-lnx/ashred/mgmtd-sampling-notify-selectmgmtd: add periodic notify mode with mode/mode_data and FE test support
Ashwini ReddyAshwini Reddy
9157410eba1mgmtd: add periodic notify mode with mode/mode_data and FE support - Added mode/mode_data to native NOTIFY_SELECT message. - Defined periodic vs on-change notify semantics in FE path. - Track periodic selectors separately from on-change selectors per session. - Added per-session periodic timer lifecycle for sampled oper snapshots. - Keep backend notify-select subscriptions on-change only. - Update FE client API/topotest encoding and docs for mode s...
Mark StappGitHubMark Stapp
adf04da31c6MMerge pull request #21769 from donaldsharp/rnh_problems_with_quick_interface_flappingzebra: Allow quick flaps of interfaces to be handled properly in next…
Donald SharpDonald Sharp
cea0c4fb742zebra: Allow quick flaps of interfaces to be handled properly in nexthop trackingCurrently if you have a quick series of events: interface down interface up This can end up resolving to no changes in the nexthop tracking if zebra is extremely busy. Modify zebra to notice that the connected/local/kernel routes have been removed and re-added and allow nexthop trackign to send a nexthop withdraw then a add to make things keep working. Signed-off-by: Donald Sharp <sharpd@nv...
Donatas AbraitisGitHubDonatas Abraitis
6e751105d25MMerge pull request #21787 from enkechen-panw/aggr-counter-fix2bgpd: fix aggregate->count not decremented when route is dampened
Mark StappGitHubMark Stapp
4ce9b52d679MMerge pull request #21697 from donaldsharp/handle_more_corestests: Catch core dumps *after* teardown has completed
Donatas AbraitisGitHubDonatas Abraitis
b2689fee6e7MMerge pull request #21810 from donaldsharp/bgp_connection_peer_0_0_7Some more bgp connection rework
Donatas AbraitisGitHubDonatas Abraitis
cac416af7fbMMerge pull request #21811 from chiragshah6/zdevzebra: fix memleak in ip import-table rmap
Donald SharpDonald Sharp
73f8c61b5edbgpd: Fix possible NULL deref in capability extended-nexthopSA is warning that peer as returned by peer_and_group_lookup_vty can be NULL. As such deref'ing the peer in bgp_capability_send is a no go. This used to work because the peer was checked for null in bgp_capability_send. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
e9ed54d4452bgpd: bgp_packet.c and bgp_fsm.c were using peer->connection in some wrong placesSimplify the code to fully make sure that the function is really connection oriented. Find and fix the places where peer->connection was being used on connection oriented functions Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
6677220e923bgpd: Modify functions to use `struct peer_connection`Modify functions in: bgp_packet.c bgp_attr.c bgp_open.c bgp_fsm.c bgp_ls.c to take a `struct peer_connection` vs a `struct peer`. Just more cleanup of the functions in what they are doing. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpGitHubDonald Sharp
2be4acf7828MMerge pull request #21812 from mjstapp/fix_gcc15_compile*: Support gcc 15
Mark StappMark Stapp
b90e034245fbfdd: changes to compile with gcc 15Changes to compile with gcc 15 Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
243a1b2cabdwatchfrr: changes to compile with gcc 15Changes to compile with gcc 15 Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
c1df3f33d4fbgpd: changes to compile with gcc 15Changes to compile with gcc 15 Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
c9eef340133lib: changes to compile with gcc 15Changes to compile with gcc 15 Signed-off-by: Mark Stapp <mjs@cisco.com>
Chirag ShahChirag Shah
fcf3707eec8zebra: fix memleak in ip import-table rmapFree the existing route-map name before inheriting new policy name. Assisted-by: Claude Signed-off-by: Chirag Shah <chirag@nvidia.com>
Donald SharpDonald Sharp
d2af097e123bgpd: Cleanup leaked memory on shutdown of rpkiWhen shutting down rpki, clean up the memory associated with the instance. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
93e363c3130tests: Add a `no rpki` command for testingThe `no rpki` command was not being tested at all in the bgp rpki code. Let's add a new test for it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
b40f817d415bgpd: Allow rpki to gracefully shutdown pthreads on stopThe bgp rpki code is seeing crashes on shutdown because the rtr mgr code is shutting down it's created pthreads and then joining them appropriately. When FRR then shutsdown we are seeing a situation where the pthread_join is crashing because it thinks it should do a join. Allow the bgp_rpki.c code to hook into the new frr_pthread_non_controlled_shutdown call to handle this situation better. ...
Donald SharpDonald Sharp
09361c7c115lib: Add a frr_pthread_non_controlled_shutdownAllow for pthreads to be cleaned up outside the scope of the frr_pthread infrastructure on shutdown. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
6ad85c5e1c6tests: Fix backtraces working properly for post topology teardownBacktraces were not being properly handled on the post topology teardown. Fix that. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
c242950cde0tests: Catch core dumps *after* teardown has completedIf a test dumps core after it has been told to teardown, the topotests do not catch this problem. Modify the code to catch this situation. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Russ WhiteGitHubRuss White
8423db024c1MMerge pull request #21741 from donaldsharp/zebra_vrf_netns_ensure_interfaces_are_uptests: Fix zebra_vrf_netns topotest
Donald SharpGitHubDonald Sharp
4ae848926a9MMerge pull request #21710 from hedrok/fix-frr-reload-no-mpls-te-import-parampathd: add optional params to `no` cmd versions for frr-reload
Donald SharpGitHubDonald Sharp
21a6530f3e9MMerge pull request #21783 from mjstapp/fix_ospf6_pktsospf6d: packet- and auth-handling improvements
Donatas AbraitisGitHubDonatas Abraitis
9feb6ecda11MMerge pull request #21698 from soumyar-roy/soumya/bgpcrashbgpd: fix shutdown crash by restricting evpn cleanup to owner instance
Christian HoppsGitHubChristian Hopps
2cf57a15cc1MMerge pull request #21782 from donaldsharp/evpn_mark_for_topoteststests: Add `evpn` pytestmark to tests that are missing
Mark StappMark Stapp
8d290a79b5dospf6d: re-validate packet auth-data lengthRe-validate authentication data len from incoming packets before using the value in digest computation. Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
5504ce87b65ospf6d: handle incoming cmsg data, validate hoplimitRequest hoplimit data when opening new sockets. Iterate through cmsg objects; don't assume the type of the first object present. Use the IPV6_RECVHOPLIMIT cmsg data for incoming packets; ignore multicast packets with invalid hoplimit per RFC5340. Signed-off-by: Mark Stapp <mjs@cisco.com>
Donald SharpGitHubDonald Sharp
8a6c2ad8160MMerge pull request #21746 from mjstapp/move_sockopt_apis*: consolidate sockopt_ apis in sockopt.c module
Donald SharpGitHubDonald Sharp
b0c3ae40568MMerge pull request #21793 from cscarpitta/bgp_ls_fix_test_incomplete_commandtests: Remove invalid link-params command from BGP-LS topotest configs
Donald SharpDonald Sharp
a29a8ed68eftests: Run black over a bunch of evpn topotestsPrevious commit only changed pytest marks but the tools are complaining about a bunch of code I didn't touch. Let's just make it happy in one fell swoop. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
651e29706catests: Add `evpn` pytestmark to tests that are missingThere are a number of evpn tests that have been created that do not have the evpn pytestmark. Make it so. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Carmine ScarpittaCarmine Scarpitta
de15c4d0badtests: Remove invalid link-params command from BGP-LS topotest configsThe frr.conf files for r1–r4 contain a `neighbor` command inside link-params blocks: link-params neighbor 10.0.255.X The command is incomplete and invalid. When loading the config, FRR reports: % Command incomplete: neighbor 10.0.255.X and silently ignores it. Remove the command. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine ScarpittaGitHubCarmine Scarpitta
cea8d91b156MMerge pull request #21376 from hedrok/bgp_ls_add_several_tlvslib, isisd, bgpd: BGP-LS add several tlvs
Donatas AbraitisGitHubDonatas Abraitis
146e8cdaa79MMerge pull request #21778 from donaldsharp/bgp_crashesBgp crashes
Donatas AbraitisGitHubDonatas Abraitis
887175d4345MMerge pull request #21786 from enkechen-panw/aggr-counter-fix1bgpd: fix aggregate->count undercount when dampening is cleared
Enke ChenEnke Chen
3f6ce8a3cf8bgpd: fix aggregate->count not decremented when route is dampenedWhen bgp_rib_withdraw() applies dampening, bgp_damp_withdraw() sets BGP_PATH_HISTORY (part of BGP_PATH_UNUSEABLE) unconditionally before bgp_aggregate_decrement() is called. This causes bgp_remove_route_from_aggregate() to skip the decrement via the BGP_PATH_HOLDDOWN check, even though the route was previously counted. The aggregate->count stays high, keeping the aggregate route installed incor...
Enke ChenEnke Chen
bab49c7e097bgpd: fix aggregate->count undercount when dampening is clearedbgp_damp_info_clean() calls bgp_aggregate_increment() while the path still carries BGP_PATH_DAMPED (and BGP_PATH_HISTORY), so the increment is skipped because BGP_PATH_HOLDDOWN() is true. bgp_damp_info_free() then clears those flags, leaving the route active in the RIB with no HOLDDOWN. When the route is later deleted, bgp_aggregate_decrement() proceeds normally, driving count one below where...
Donald SharpDonald Sharp
c5638ab946abgpd: Prevent crash when list is already NULLEnsure that the list is actually there on cleanup. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
7be92a7123abgpd: Prevent assert on shutdown in evpn setupI am seeing this crash on shutdown: (gdb) bt 0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44 1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78 2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 3 0x000073b03f64527e in __GI_raise (sig=6) at ../sysd...
Kyrylo YatsenkoKyrylo Yatsenko
5ee1b95053abgpd: BGP-LS: simplify bgp_ls_attr_to_jsonSimplify bgp_ls_attr_to_json using json_object_string_addf instead of snprintfrr + json_object_string_add Signed-off-by: Kyrylo Yatsenko <hedrok@gmail.com>
Kyrylo YatsenkoKyrylo Yatsenko
6c55c752604tests: BGP-LS IS-IS Area Identifier (TLV 1027)Signed-off-by: Kyrylo Yatsenko <hedrok@gmail.com>
Kyrylo YatsenkoKyrylo Yatsenko
e0d9ce87c80bgpd: BGP-LS: update IS-IS Area Identifier (TLV 1027)* Console output (bgp_ls_attr_display) * JSON output (bgp_ls_attr_to_json) * Fill in from TED (bgp_ls_populate_node_attr) Signed-off-by: Kyrylo Yatsenko <hedrok@gmail.com>
Kyrylo YatsenkoKyrylo Yatsenko
c489cf70f12isis, lib: add isis area id to ls_nodeIt is needed for BGP-LS IS-IS Area Identifier (TLV 1027) Signed-off-by: Kyrylo Yatsenko <hedrok@gmail.com>
Donald SharpGitHubDonald Sharp
5c8e5670fd5MMerge pull request #21711 from LabNConsulting/chopps/commit-info-msgadd successful commit info msg
Mark StappGitHubMark Stapp
1fa29d150dfMMerge pull request #21777 from opensourcerouting/fix/security_hardening_bgpdbgpd: Add some defences for AS4/ENCAP handling
Donatas AbraitisDonatas Abraitis
44f3385741abgpd: Define a maximum number of TLVs for ENCAP attributeAdding just a guard against the memory going crazy (too much malloc()s) with legitimate TLVs, but sort of "malformed"/crafted packet. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
9f2507e0d89bgpd: Replace assert() with a boundary check conditionJust to avoid randomly killing bgpd daemon with a malformed packet. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>