FRR Mirror
  1. FRR Mirror

FRR

Public
AuthorCommitMessageCommit dateIssues
David LamparterDavid Lamparter
3cd9490d0b0lib/printf: ditch reallocarrayreallocarray() is walled behind stupid feature macros on various platforms and doesn't quite gain us much in that particular use case. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
d52ec5720f6lib: add some printfrr specifiersMore to come - these are just the most obvious and easy. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
807f5b98424lib: use printfrr for log & vtyThis makes printfrr extensions available in most of our format strings. snprintf() is the obvious exception. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
bf4d3d80219lib/printf: add extension supportInspired by the Linux kernel, this allows us to do %pI4 and similar things. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
60f1101d29blib/printf: fix some random warningsSigned-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
5c25bd87b5alib/printf: integrateSigned-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
8be3678a233lib/printf: rename & private __find_argumentsThese are internal to printf(), and symbols starting with __ are reserved for the compiler/libc. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
e8c672ea810lib/printf: disable wchar_t support... we just don't use wchar_t in FRR, no point in having this enabled. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
32b67a0aeb0lib/printf: add %Ld/%Lu for int64_t/uint64_t[u]int64_t is the only type in the intX_t family that needs special-casing for printf since the calling convention may differ between 32-bit and 64-bit systems. Adding the L specifier allows us to eschew the gnarly-looking PRIu64. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
7fa480984edlib/printf: use system printf for floatsWe're not libc, we can just fall back to snprintf() to avoid all this low-level float mangling. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
86bfbddf6edlib/printf: cut down to sizeremove various FreeBSD specific bits, as well as the entirety of locale support. Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterDavid Lamparter
ea0b6afe2b7lib: import FreeBSD's printf... from current SVN HEAD (not that it has been touched in the past 2 years ...) Signed-off-by: David Lamparter <equinox@diac24.net>
David LamparterGitHubDavid Lamparter
731bea28449MMerge pull request #4417 from sworleys/Move-Multicast-Modezebra: Move multicast mode to being a property of the router
David LamparterGitHubDavid Lamparter
36235a9ff70MMerge pull request #4436 from donaldsharp/tools_frr_flushtools: On shutdown no need to flush from tools/frr.in script
David LamparterGitHubDavid Lamparter
5a4ac9df0fdMNo log commands (#3581)No log commands
Donald SharpGitHubDonald Sharp
b2eea7a00ebMMerge pull request #4345 from NaveenThanikachalam/route_map_deplib: Changes made to dependencies of a route-map do not take effect dynamically.
Donald SharpGitHubDonald Sharp
61b64d55014MMerge pull request #4078 from lkrishnamoor/rmap_vni_filterbgpd: Filtering received EVPN routes based on VNI does not work
Donald SharpGitHubDonald Sharp
b97480c5482MMerge pull request #4274 from rgirada/fix_clear_mroutepimd: Re-deisgn the "clear ip mroute" command.
Donald SharpGitHubDonald Sharp
ecccf2275afMMerge pull request #4445 from pguibert6WIND/display_show_nht_if_not_foundzebra: the route nexthop interfaces per vrf were not displayed ok
Philippe GuibertPhilippe Guibert
ce5a988736bzebra: the route nexthop interfaces per vrf were not displayed okthe interface search done was not looking in the appropriate zns. The display was then wrong. Update the show command with the correct zns. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Donald SharpGitHubDonald Sharp
a0d1226e23fMMerge pull request #4442 from opensourcerouting/libtool-docdoc: add libtool note
David LamparterDavid Lamparter
81af03178b7doc: add libtool note(and document that ASAN/MSAN/TSAN are mutually exclusive while at it) Signed-off-by: David Lamparter <equinox@diac24.net>
Donald SharpDonald Sharp
9ee2f5741detools: On shutdown no need to flush from tools/frr.in scriptZebra already flushes routes on proper shutdown if you are not using the -K option. If you are using the -K option then you do not want the tools/frr script to flush routes. If zebra crashes and we restart then load up will either delete the routes or leave them depending on the -K option. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Mark StappGitHubMark Stapp
32e4ce5fd52MMerge pull request #4435 from donaldsharp/zclient_buffer_sizinglib, zebra: Ensure route encoding has enough space
Donald SharpGitHubDonald Sharp
ce231fbc872MMerge pull request #4430 from lkrishnamoor/hostname_crashlib: crash when FRR hostname length > 80 chars
Lakshman KrishnamoorthyLakshman Krishnamoorthy
63e653a21f5lib: crash when FRR hostname length > 80 charsAlthough the RFC states hostname length should be < 255 chars, FRR allows infinite length technically. However, when you try to set a hostname > 80 chars, you would immediately notice a crash. RCA: Crash due to buffer overflow. Large buffer sprintf'd into smaller buffer. Usage of sprintf function instead of snprintf which is safer. Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Lakshman KrishnamoorthyLakshman Krishnamoorthy
e241544469abgpd: Filtering received EVPN routes based on VNI does not workIssue1: When "neighbor X.X.X.X route-map RM-VNI-FILTER in" is configured under evpn address-family, all the received routes are dropped regardless of whether the route has a matching vni or not. Issue2: Routes with 2 labels are not filtered correctly Issue3: Interpreting the label based on tunnel type, vxlan was not done correctly. Vxlan label has 24 bits, whereas, MPLS label is 20 bits long ...
Naveen ThanikachalamNaveen Thanikachalam
e2c8d6ce90alib: Changes made to dependencies of a r-map do not take effect.Say, more than one sequence of a route-map uses the same named entity in its match clause. After that entity is removed from any one of the route-map sequences, any further changes made to that entity doesn't dynamically take effect. A reference counter, that allows the named entity to keep a count of the route-maps dependent on it, has been introduced to address this issue. Signed-off-by: Na...
Donald SharpDonald Sharp
f3f45626125lib, zebra: Ensure route encoding has enough spaceWhen you have compiled FRR with a large multipath number then encoding large ecmp routes between zebra and the routing daemons. There exists a theoritical size of multipath that will cause the encoding to be larger than the ZEBRA_MAX_PACKET_SIZ. In the cases where we have allocated streams that will encode routes then let's ensure that whatever size we have will auto-fit what we say we can se...
Mark StappGitHubMark Stapp
4cc136532f3MMerge pull request #4434 from donaldsharp/fix_warningsFix warnings
Donald SharpDonald Sharp
80d02adbb01doc: Add doc for new configure optionAdd documentation for the '--command-log-always' daemon cli and how to use it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
2950f5da55alib: Add '--command-log-always` to all daemons startupAdd 'no log commands' cli and at the same time add a --command-log-always to the daemon startup cli. If --command-log-always is specified then all commands are auto-logged and the 'no log commands' form of the command is now ignored. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
1b3f6ff1f68lib: Fix gcc 9 warning -> error issuegcc is complaing about this with --enable-dev and --enable-werror: In function 'nb_log_callback', inlined from 'nb_transaction_apply_finish' at lib/northbound.c:1106:4: lib/northbound.c:777:2: error: '%s' directive argument is null [-Werror=format-overflow=] 777 | zlog_debug( | ^~~~~~~~~~~ 778 | "northbound callback: event [%s] op [%s] xpath [%s] value [%s]", | ~~~~~~...
Donald SharpDonald Sharp
918537e240clib: vtypath_default could be overwrittenThe vtypath_default variable had a possibility of being overwritten due to size constraints. This fixes this issue. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpGitHubDonald Sharp
9c61cec7e38MMerge pull request #4315 from lkrishnamoor/route_map_3rd_statelib: Introducing a 3rd state for route-map match cmd: RMAP_NOOP
Donald SharpGitHubDonald Sharp
008def86430MMerge pull request #4369 from patrasar/lmqc_lmqtpimd: new cli to configure last-member-query-count & last-member-quer…
Donald SharpGitHubDonald Sharp
a7ed7133b2eMMerge pull request #4400 from LabNConsulting/working/master/centos7-docfix centos7 build - set SPHINXBUILD to match centos7 yum installed package
Donald SharpGitHubDonald Sharp
45ba823c1e1MMerge pull request #4426 from mjstapp/fix_memstats_clilib, vtysh: make 'debug memstats' work via vtysh
Donald SharpGitHubDonald Sharp
7ee965ca4bdMMerge pull request #4427 from mjstapp/fix_topo_memleakdoc: clean up memleak section of topotests doc
Mark StappMark Stapp
85a6806dce1lib, vtysh: make debug memstats work in vtyshAllow vtysh to send the 'debug memstats-on-exit' command to the running daemons. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Lakshman KrishnamoorthyLakshman Krishnamoorthy
eadd168781dlib: Introducing a 3rd state for route-map match cmd: RMAP_NOOPIntroducing a 3rd state for route_map_apply library function: RMAP_NOOP Traditionally route map MATCH rule apis were designed to return a binary response, consisting of either RMAP_MATCH or RMAP_NOMATCH. (Route-map SET rule apis return RMAP_OKAY or RMAP_ERROR). Depending on this response, the following statemachine decided the course of action: Action: Apply route-map match and return the re...
Sri Mohana SingamsettyGitHubSri Mohana Singamsetty
979dd989c46MMerge pull request #4413 from donaldsharp/bgp_distance_comes_closerBgp distance comes closer
Mark StappGitHubMark Stapp
bb71dbb400bMMerge pull request #4410 from donaldsharp/invaliddoc: Fix doc showing command that does not exist
Sarita PatraSarita Patra
59115451a8fpimd: new cli to configure last-member-query-count & last-member-query-intervalIntroduce new cli commands ip igmp last-member-query-count <1-7> ip igmp last-member-query-interval <1-255> deciseconds. Display the config in show running config and show ip igmp interface Signed-off-by: Sarita Patra <saritap@vmware.com>
Sri Mohana SingamsettyGitHubSri Mohana Singamsetty
64a1a227932MMerge pull request #4408 from donaldsharp/bgp_status_fsmbgpd: Update an fsm debug message
Renato WestphalGitHubRenato Westphal
4eb4afa3b6bMMerge pull request #4393 from donaldsharp/debug_allDebug all
Renato WestphalGitHubRenato Westphal
0ad79902fc5MMerge pull request #4267 from qlyoung/fix-misc-compile-warningsFix misc compile warnings, remove strcpy & strcat
Sri Mohana SingamsettyGitHubSri Mohana Singamsetty
fc37d4fe0d2MMerge pull request #4402 from chiragshah6/evpn_dev1bgpd: fix debug to have proper nhop display
Donald SharpGitHubDonald Sharp
a5b1c028086MMerge pull request #4415 from mjstapp/dplane_dist_setterszebra: add setters for distance, instance
Donald SharpGitHubDonald Sharp
f4669bd9dbbMMerge pull request #4351 from patrasar/pim_show_ip_mroute_summarypimd: new cli command show ip mroute summary