FRR Mirror
  1. FRR Mirror

FRR

Public
AuthorCommitMessageCommit dateIssues
Donatas AbraitisGitHubDonatas Abraitis
5abf1eef7baMMerge pull request #20050 from raja-rajasekar/rajasekarr/l2_l3vni_safefixbgpd: Link L2VNI to L3VNI only when it really exists
Carmine ScarpittaGitHubCarmine Scarpitta
1ab7631d451MMerge pull request #20038 from pguibert6WIND/coexistence_withdraw_eventCoexistence withdraw event
Carmine ScarpittaGitHubCarmine Scarpitta
2eea95ee0e5MMerge pull request #20049 from opensourcerouting/fix/revert_af95c29107d3e7d56cee9a01b20fadaf1c50ad17Some initializations
vivekRajasekar Rajavivek
e63258f43f7bgpd: Link L2VNI to L3VNI only when it really existsWhen a L2VNI is made known to bgpd, the current linking of it to L3VNI does not quite check if the L3VNI is known to bgpd. This is incorrect and can lead to problematic behavior in some situations. In one specific instance, if type-1 routes from a remote MH pair already exist, the ES-VRF association gets prematurely setup leading to the corresponding L3NHG getting setup with incorrect informati...
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
a9c02bfed14MMerge pull request #19917 from mjstapp/epoll_updatelib: Support epoll APIs in thread management lib
Mark StappMark Stapp
b374a10c288build: enable epoll in the event lib by defaultEnable epoll by default on platforms where it's present. The configure tests fall back to ppoll (or poll) otherwise. Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
5de262a839blib: converting epoll-based code to typesafe hashUse the typesafe hash lib for the new epoll objects. Also make a few cleanups and adjustments after testing. Signed-off-by: Mark Stapp <mjs@cisco.com>
Mark StappMark Stapp
747af764419lib: Support epoll APIs in thread management routineThis commit adds support for epoll APIs for better performance. This is controlled by a configure option. Note that epoll APIs are only available for Linux platforms. For BSD and other linux platforms which do not support epoll APIs, poll APIs are still used. Signed-off-by: Kaifei Peng <2534164734@qq.com> Signed-off-by: Mark Stapp <mjs@cisco.com>
Donatas AbraitisDonatas Abraitis
a4dfd893442bgpd: Initialize ifindex to IFINDEX_INTERNAL to avoid garbage in zlog_debug../bgpd/bgp_zebra.c: In function 'zebra_read_route': ../bgpd/bgp_zebra.c:574:25: warning: 'ifindex' may be used uninitialized in this function [-Wmaybe-uninitialized] 574 | zlog_debug("Rx route ADD %s %s[%d] %pFX nexthop %s (type %d if %u) metric %u distance %u tag %" ROUTE_TAG_PRI, | ^ ../bgpd/bgp_zebra.c:509:19: note: 'ifindex' was decla...
Donatas AbraitisDonatas Abraitis
24cc5825fd5bgpd: Initialize nhtype to unspecified (0) before using in zlog_debug../bgpd/bgp_zebra.c:505:30: note: 'nhtype' was declared here 505 | enum nexthop_types_t nhtype; | ^ ../bgpd/bgp_zebra.c: In function 'zebra_read_route': ../bgpd/bgp_zebra.c:574:25: warning: 'ifindex' may be used uninitialized in this function [-Wmaybe-uninitialized] 574 | zlog_debug("Rx route ADD %s %s[%d] %pFX nexthop %s (t...
Donatas AbraitisGitHubDonatas Abraitis
7c6119feb20MMerge pull request #20040 from pguibert6WIND/srv6_only_command_to_defaultbgpd: fix srv6-only command defaulted when 'no segment-routing ipv6'
Philippe GuibertPhilippe Guibert
4271530dff3bgpd: fix srv6-only command defaulted when 'no segment-routing ipv6'When the 'no segment-routing ipv6' command is applied, the current srv6-only configuration is still used; this makes think that the previous command is ineffective. Fix this by defaulting the value to false. Fixes: 4c80ab09dfd7 ("bgpd: add srv6-only command per bgp instance") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
24eaa9ad48atopotests: bgp_srv6l3vpn_sid, add a withdraw vpn path checkAdd a test in bgp_srv6l3vpn_sid test where, upon withdrawing a VRF BGP update, the resulting VPN paths are completly withdrawn. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertPhilippe Guibert
843622c50ddbgpd: fix withdraw all VPN paths upon withdraw L3VRF path suppressedOn a L3VPN configuration with srv6 and mpls coexistence, both paths are exported. Upon withdrawing the path of origin, only one out of the two VPN paths is suppressed. > r1# show bgp ipv4 vpn > [..] > Route Distinguisher: 11:10 > *> 192.168.1.0/24 0.0.0.0@7< 0 32768 ? > UN=0.0.0.0 EC{77:77} label=16 sid=2001:db8:1:1:: sid_structure=[40,24,16,0] type=bgp, subtype=5...
Donatas AbraitisGitHubDonatas Abraitis
d20531e9f65MMerge pull request #20035 from jaredmauch/bgpd_listening_socket_regressionbgpd: fix uninitialized variable in bgp_need_listening
Donatas AbraitisGitHubDonatas Abraitis
82ec00343e4MMerge pull request #20032 from jaredmauch/bgp_nhc_tlv_dupbgpd: fix memory leak in BGP NHC TLV processing
Donatas AbraitisGitHubDonatas Abraitis
6991d37aa13MMerge pull request #20020 from donaldsharp/fix_snmp_warningslib: ospf_snmp.c is compiling with warnings
Donatas AbraitisGitHubDonatas Abraitis
babd2e99e75MMerge pull request #20024 from raja-rajasekar/rajasekarr/show_cmd bgpd: add evpn prefix in json output
jared mauchjared mauch
0e189e0db1dbgpd: fix uninitialized variable in bgp_need_listeningThe listener variable was not initialized to NULL, causing undefined behavior when the listen_sockets list is empty. This prevented the listening socket from being created for the default VRF, leading to poll() errors and crashes in BGP tests. Root cause: When the list is empty, the loop never executes, leaving listener uninitialized. The subsequent NULL check then reads an uninitialized value...
jared mauchjared mauch
a9c53ede94bbgpd: fix memory leak in BGP NHC TLV processingFix memory leak that occurs when processing duplicate NHC TLVs in BGP UPDATE messages. The code was allocating a TLV structure and value buffer before checking if a TLV with the same code already existed. If a duplicate was found, the newly allocated TLV was leaked. Also fix error path where TLV was not freed before returning on NNHN TLV validation error. This leak can occur on long-lived BGP...
Rajasekar RajaRajasekar Raja
8807f085a9ctests: Add coverage for show vni mac ip jsonAdd coverage for show vni mac ip json Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
Chirag ShahRajasekar RajaChirag Shah
dcb365da752bgpd: add evpn prefix in json outputPR 4850 has changed JSON output format where evpn prefix is dissected to display each fields. In effort to do so, it removed the evpn prefix and prefixlen fields which causes a regression issue in exisitng cli parser. Adding back evpn prefix and prefixlen. Ticket: CM-30105 Reviewed By:CCR-10420 Testing Done: TORS1# show bgp l2vpn evpn route vni 1002 mac 00:02:00:00:00:01 ip fe80::202:ff:fe00:...2 Jira issues
Donald SharpDonald Sharp
5ba188a6b69lib: ospf_snmp.c is compiling with warningsSince the change to the byte length macros was switching it from a sizeof(X) to a straight number, the number is being treated as a integer. GCC is rightly treating this as mixing integer sizes and calling out problems. Let's tell the compiler that these values are actually Unsigned Longs. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Russ WhiteGitHubRuss White
66bae5f49faMMerge pull request #19122 from louis-6wind/zebra-neigh-extzebra: fix import of non zebra extern_learn neighbors
Russ WhiteGitHubRuss White
6c4140ef538MMerge pull request #19721 from chiragshah6/evpnv6_1*:EVPN over IPv6 underlay fabric - single homed
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
e4b9a889998MMerge pull request #20013 from donaldsharp/coverity_snmp_stufflib: Change sizeof(..) to actual byte sizes for addresses
Donald SharpGitHubDonald Sharp
bddffb114f0MMerge pull request #20012 from opensourcerouting/fix/default_socketbgpd: Activate listening socket for a default VRF when created
Donald SharpDonald Sharp
7f1b2a509e1lib: Change sizeof(..) to actual byte sizes for addressesCoverity is complaining about mixing sizeof operators with ptr arithmetic. Let's just convert to the actual byte sizes instead of doing sizeof().. We already have this in other places in the code. Should be ok. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donatas AbraitisDonatas Abraitis
bed222023betests: Add a test to check if BGP socket is created for a default VRFApplied a black styling also... Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
df7b1910abebgpd: Activate listening socket for a default VRF when createdThe intention was to stop/start listening sockets for VRF instances, but not for a default VRF. This is especially useful for VRF leaking, when non-default VRFs do not have any peers configured. Fixes: f8dafef42b694de723df256765df37f8405ef48e ("bgpd: avoid socket activation for VRF instances") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
a3fa054d7beMMerge pull request #20006 from donaldsharp/coverity_uninitializedCoverity uninitialized
Donald SharpGitHubDonald Sharp
7eaadbdc661MMerge pull request #20004 from opensourcerouting/fix/docker_buildsAlpine Docker fix ups for 3.22
Mark StappGitHubMark Stapp
4ae185fc353MMerge pull request #19907 from hnattamaisub/cov_zebzebra: Coverity issue (Null pointer dereference -med severity)
Donatas AbraitisDonatas Abraitis
b2da38bb310docker: Move apk dependencies into APKBUILD fileInstall as root, but take them from APKBUILD file to be consistent as others. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
3d50a84be4ddocker: Install dependencies as root for alpine-apk-builder stageSigned-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donald SharpDonald Sharp
18b1d8bfde0zebra: Check return code of sscanfWe check the return code of sscanf, every where but this place. Do so. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
1bfcdfcf8f2nhrpd: Initialize variableCoverity thinks it is possible that FRR has a code path where the nmba_addr is not initialized when it is used to set another variable. Let's make coverity happy. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald SharpDonald Sharp
7ff81fbd840lib: Error check set_log_fileThis log file is error checked every other place do so here as well. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donatas AbraitisDonatas Abraitis
1b76519ba3ealpine: Drop libacl packageSince 3.22, it's just 'acl'. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
f3d40d48534docker: Use Alpine 3.22 imageAn upgrade from 3.20 Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
95d3507f293docker: Install acl package for libyang build0 0.723 ERROR: unable to select packages: 0 0.723 libacl (no such package): 0 0.723 required by: world[libacl] Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas AbraitisDonatas Abraitis
3a16c350ccddocker: Install dependencies with the root user for libyang build0 6.211 >>> libyang: Uninstalling dependencies... 0 6.256 abuild-apk: setuid(0) failed: Operation not permitted ------ Dockerfile:21 -------------------- 20 | USER builder 21 | >>> RUN cd /src/libyang \ 22 | >>> && abuild checksum \ 23 | >>> && git init \ 24 | >>> && abuild -r -P /pkgs/apk Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Louis ScalbertLouis Scalbert
768950443b2tests: check import of non zebra extern_learn neighborsCheck import of non zebra extern_learn neighbors to zebra neighbor table. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Donatas AbraitisGitHubDonatas Abraitis
c4d30b79edfMMerge pull request #19985 from mjstapp/lock_loop_show_cmdslib: hold event loop mutex during show commands
Donatas AbraitisGitHubDonatas Abraitis
8a2d7d43375MMerge pull request #19991 from donaldsharp/32bit_problems32bit problems
Harini SubramanianhariniHarini Subramanian
ca32455e977zebra: Coverity issue (Null pointer dereference(CID 90819))This commit addresses null pointer dereference in zebra/zebra_nhg.c CID 90819: Dereference null return value (NULL_RETURNS) dereference: Dereferencing a pointer that might be NULL new when calling zebra_nhg_increment_ref. Description: Handled null check accordingly. Signed-off-by: Harini Subramanian <hnattamaisub@nvidia.com>
Harini SubramanianhariniHarini Subramanian
7a7027ea3abzebra: Coverity issue (Null pointer derefence(CID 109575))This commit addresses null pointer dereference in zebra/zebra_router.c
 CID 109575: Dereference null return value (NULL_RETURNS) dereference: Dereferencing zrt, which is known to be NULL. Description: Handled null check accordingly. Signed-off-by: Harini Subramanian <hnattamaisub@nvidia.com>
Harini SubramanianhariniHarini Subramanian
731317b2911zebra: Coverity issue (Null pointer derefence(CID 71721))This commit addresses null pointer dereference in zebra/zapi_msg.c CID 71721: Dereference null return value (NULL_RETURNS) dereference: Dereferencing a pointer that might be NULL rn when calling route_notify_internal. Description: Handled prefix changes and avoided null check accordingly. Signed-off-by: Harini Subramanian <hnattamaisub@nvidia.com>
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
075c1e9f549MMerge pull request #20001 from donaldsharp/bgp_keepalives_data_raceBgp keepalives data race
Jafar Al-GharaibehGitHubJafar Al-Gharaibeh
2e620a49646MMerge pull request #19990 from donaldsharp/event_executelib: Properly set event_execute type