FRR Mirror
  1. FRR Mirror

FRR

Public
AuthorCommitMessageCommit dateIssues
Donald SharpGitHubDonald Sharp
e9262d1d54fMMerge pull request #19952 from opensourcerouting/fix/deny_plain_attr_usagebgpd: Do not cast to a larger size than an argument for encode_rd_type()
Donald SharpGitHubDonald Sharp
39cf1339fd0MMerge pull request #19955 from cscarpitta/fix/fix_srv6_rt_netlinkzebra: Refactor SRv6 netlink code to remove duplication
Carmine ScarpittaCarmine Scarpitta
4826a8c44d2zebra: Fix a couple of style issues reported by clang-formatSigned-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine ScarpittaCarmine Scarpitta
857d5dc912bzebra: Refactor seg6 encoding into common helper functionThe logic for encoding SRv6 seg6 info is duplicated across two different code paths: the single-path route builder (`_netlink_route_build_singlepath`) and the nexthop message encoder (`netlink_nexthop_msg_encode`). This commit extracts the common logic into a new static helper function and refactors original functions to use this new helper. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine ScarpittaCarmine Scarpitta
df4a41fd2efzebra: Refactor seg6local encoding into common helper functionThe logic for encoding SRv6 seg6local info is duplicated across two different code paths: the single-path route builder (`_netlink_route_build_singlepath`) and the nexthop message encoder (`netlink_nexthop_msg_encode`). This commit extracts the common logic into a new static helper function and refactors original functions to use this new helper. Signed-off-by: Carmine Scarpitta <cscarpit@cis...
Carmine ScarpittaCarmine Scarpitta
2789dbe0e04zebra: Explicitly list all seg6local action cases in switch statementThe switch statement for handling seg6local actions in `netlink_nexthop_msg_encode` uses a `default` case to catch all unsupported actions. This commit replaces the `default` with explicit `case` statements for each unsupported action. This is a safer pattern that ensures the compiler will generate a warning if a new enum member is added without being explicitly handled. Signed-off-by: Carmin...
Carmine ScarpittaCarmine Scarpitta
9ea8f3146eazebra: Handle End.B6.Encaps behavior in single-path route encodingThe ZEBRA_SEG6_LOCAL_ACTION_END_B6_ENCAP action is handled in the nexthop encoding path (`netlink_nexthop_msg_encode`), but it is missing from the single-path route encoding path (`_netlink_route_build_singlepath`). As a result, the installation of a seg6local route with the End.B6.Encaps behavior fails when kernel nexthop objects are not used. This commit extends the rt_netlink code to handl...
Carmine ScarpittaCarmine Scarpitta
cdd70e2db2czebra: Generalize signature of End.B6.Encaps encoding helperChange the parameter of `netlink_nexthop_msg_encode_end_b6_encaps` from `struct buf_req *` to `struct nlmsghdr *`. This change is required to enable the function to be called from `_netlink_route_build_singlepath` in a subsequent commit. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine ScarpittaCarmine Scarpitta
d9e3ada5426zebra: Fix a typo in the error log for unsupported seg6local behaviorsSigned-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine ScarpittaCarmine Scarpitta
f79a24fa06bzebra: Use zebra enums for seg6local actionsThe switch statement for seg6local actions in the netlink encoding path switches on a variable of type `seg6local_action_t`, a Zebra-internal enum. However, the `case` labels are using constants from the Linux kernel header (`SEG6_LOCAL_ACTION_*`). This only works because the values of the Zebra enum and the kernel enum are currently identical. This is conceptually incorrect and would lead to ...
Donald SharpGitHubDonald Sharp
a12c7440f31MMerge pull request #19950 from Jafaral/doc-updatesdoc: add note to the dev guide regrading backports
Donald SharpGitHubDonald Sharp
94fa7a1dd91MMerge pull request #19953 from opensourcerouting/fix/bgp_attr_helpersbgpd: Use bgp_attr_[exists/set/unset] helpers when doing attr stuff
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
67afeedd2e4MMerge pull request #19951 from donaldsharp/new_coverity_from_the_weekendzebra: Return checks are missing in some spots
Donatas AbraitisDonatas Abraitis
f8b81fed29ebgpd: Use bgp_attr_[exists/set/unset] helpers when doing attr stuffThis would help in the future to avoid passing bare int (constant) instead of using ATTR_FLAG_BIT() macro. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
badbf5d045abgpd: Do not cast to a larger size than an argument for encode_rd_type()Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donald SharpDonald Sharp
b3d0025d08dzebra: Return checks are missing in some spotscoverity is pointing out that in most instances FRR is doing return checks. Looks like just some new stuff that has come up due to other checks going in place. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Jafar Al-GharaibehJafar Al-Gharaibeh
eb6ff705f33doc: add note to the dev guide regrading backportsSigned-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Donald SharpGitHubDonald Sharp
94fc2895bdfMMerge pull request #19940 from opensourcerouting/fix/check_med_with_flagsbgpd: Check MED flag correctly in encap_attr_export()
Donald SharpGitHubDonald Sharp
24a739296d3MMerge pull request #19912 from anlancs/fix/ldpd-pw-missingldpd: fix missing the pw message
Donatas AbraitisDonatas Abraitis
cb78077cfcfbgpd: Check MED flag correctly in encap_attr_export()Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisGitHubDonatas Abraitis
9ed16f0751dMMerge pull request #19903 from fdumontet6WIND/extcomm_list2bgpd: fix expanded extcomm list delete
Donatas AbraitisGitHubDonatas Abraitis
67fd68a91d7MMerge pull request #19927 from donaldsharp/attr_bit_flag_wrongbgpd: fix BGP_ATTR_LOCAL_PREF being set appropriately
Donald SharpGitHubDonald Sharp
543f2c78a1dMMerge pull request #19918 from enkechen-panw/bgp-originatorbgpd: fix BGP_ATTR_ORIGINATOR_ID flag in outbound attribute cache
Donald SharpDonald Sharp
1812bc263b4bgpd: fix BGP_ATTR_LOCAL_PREF being set appropriatelyThe BGP_ATTR_XXX flags are all using ATTR_FLAG_BIT to find the right spot in the bitfield of the flags variable. From looking at 004f9909c866ddf8d04e680db00120071dd22344 I decided to go looking at the rest of them. This is where I found it wrong too. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donatas AbraitisGitHubDonatas Abraitis
db61d3c5facMMerge pull request #19896 from chiragshah6/evpn_dev5bgpd: Check L3VNI status before adv evpn vrf routes
Donatas AbraitisGitHubDonatas Abraitis
8e6de49d902MMerge pull request #19895 from chiragshah6/evpn_dev4bgpd: fix routemap evpn type-5 default route check
Enke ChenEnke Chen
004f9909c86bgpd: fix BGP_ATTR_ORIGINATOR_ID flag in outbound attribute cacheFix the setting of the BGP_ATTR_ORIGINATOR_ID flag in the outbound attribute cache. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
anlan_csanlan_cs
a7f3d3be269tests: add ldp case with changed pw configurationSigned-off-by: anlan_cs <anlan_cs@126.com>
Donald SharpGitHubDonald Sharp
27003c59b08MMerge pull request #19909 from mjstapp/bgp_parse_fspecbgpd: check more during flowspec nlri parsing
Mark StappGitHubMark Stapp
c0c8780ecb8MMerge pull request #19901 from donaldsharp/peer_connection_new_fixupbgpd: When creating a peer_connection pass in the sockunion for it
Mark StappGitHubMark Stapp
0705d288946MMerge pull request #19911 from hnattamaisub/cov_zebra_srv6zebra: Coverity issue (Null pointer dereference)
anlan_csanlan_cs
b2313d15714ldpd: fix missing the pw messageEven if the remote didn't have any pw configuration, the local with pw configuration still send a pw message after the nbr relation is established. The pw configuration was set by remote later, but the local didn't send it again. So let the local send explicitly this kind of pw message to remote. Signed-off-by: anlan_cs <anlan_cs@126.com>
Harini SubramanianHarini Subramanian
6efc5131b9dzebra: Coverity issue (Null pointer derefence(CID 110225))This commit addresses null pointer dereference in zebra/zebra_srv6_vty.c CID 110225: Dereference null return value (NULL_RETURNS) dereference: Dereferencing zvrf, which is known to be NULL. Description: Handled null check accordingly. Signed-off-by: Harini Subramanian <hnattamaisub@nvidia.com>
Mark StappMark Stapp
8e27c092773bgpd: check more during nlri parsingValidate a little more when parsing flowspec NLRIs Signed-off-by: Mark Stapp <mjs@cisco.com>
Francois DumontetFrancois Dumontet
f6e504a5871test: update bgp_extcomm_list_delete after extcomm-list delete fixfollowing previous fix change expected ressult for expanded extcomm-list delete test in bgp_extcomm_list_delete test. Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
Donald SharpDonald Sharp
9bc39f9d567bgpd: use connection in bgp_open.c and bgp_packet.cFinish converting over bgp_open.c to using a struct peer_connection for handling the connection. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
8520e87fcd9bgpd: bgp_open internally should use a connection.Another connection oriented activity but we are sending the peer instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
17744320ed8bgpd: When creating a peer_connection pass in the sockunion for itWe have code that is creating a new peer_connection and then at a later pointer it is setting those values. This is not correct. It should just be passed in and worked from there. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpGitHubDonald Sharp
108d9b040c7MMerge pull request #19902 from Jafaral/igmp-supress-warnpimd: demote a warning to a debug to avoid spamming the logs
Francois DumontetFrancois Dumontet
a63aa379ef5bgpd: fix expanded extcomm list deletethis fix is related to extended communitylist deletion with expanded regex rule. current behavior: if a value match the regex, all the extended community is deletedd. expected behavior: only values that match ethe regex are removed Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
Jafar Al-GharaibehJafar Al-Gharaibeh
8fb28cba7c0pimd: demote a warning to a debug to avoid spamming the logsIf a router/switch keeps sending us a general igmp query with a flag we don't expect, we shouldn't spam the logs, especially if the condition is totally harmless and can be just ignored. Just move it under a debug config. Sample log firing every 15 seconds: ``` 02:10:32 pimd: General IGMP query v3 from 192.168.1.1 on eth0: Suppress Router-Side Processing flag is clear 02:10:47 pimd: General I...
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
1e498234daaMMerge pull request #19597 from donaldsharp/tests_unifiedConvert a couple of bfd tests to use frr.conf unified config
Russ WhiteGitHubRuss White
81c155b7a1aMMerge pull request #19891 from donaldsharp/peer_group_notify_unconfig_bugbgpd: Notify all incoming/outgoing on peer group notify unconfig
Chirag ShahChirag Shah
f4c61b5e7dbbgpd: Check L3VNI status before adv evpn vrf routesCheck L3VNI is UP before advertising any evpn vrf/Tye-5 routes. There can be a timing EVPN type-5 default route is advertised with VNI 0 and invalid RTs where l3vni is not known to bgpd. The check ensures all type-5 route advertisement check for L3VNI UP state. Ticket:#2886476 Testing: Validating via flapping vrf interface, disable/enable advetise-pip in presence of advetise default route as ...
Chirag ShahChirag Shah
ee2b2276121bgpd: fix routemap evpn type-5 default route checkroute-map match condition on evpn default-route does not have proper check that its truly type-5 before checking prefixlen being 0. In absence of the fix, the set condition applied to all evpn routes as evpn prefix is type union so just checking for prefixlen 0 is not sufficient. Ticket:#3227895 Issue:3227895 Testing Done: Apply ingress route-map policy: route-map POLICY_OUT_SS permit 10 ...
Donatas AbraitisGitHubDonatas Abraitis
95feb82b3d9MMerge pull request #19840 from donaldsharp/show_zebra_client_jsonzebra: Add `show zebra client json` command
Russ WhiteGitHubRuss White
8fca2cf134cMMerge pull request #19695 from aprathik04/zebra_uncheck_return_coverityzebra: fix for unchecked return value coverity issues
Donald SharpDonald Sharp
051b5db1a75tests: Convert bfd_isis_topo1 and bfd_ospf_topo1 to unified configStart the conversion of some tests to using a unified config for bfd. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
e0465f17aa7tests: Allow bfdd to be part of the unified config worldThe unified config loader was not properly handling bfdd. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpGitHubDonald Sharp
2edcc1e5afaMMerge pull request #19807 from anlancs/fix/zebra-fpmzebra: fix missing fpm messages