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

Topotests fail #7

Closed
wants to merge 2,261 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2261 commits
Select commit Hold shift + click to select a range
48df84a
tests: ospf_suppress_fa sleeps, convert to run_and_expect
donaldsharp Dec 13, 2023
a323032
ospfd: Correct LSA parser which fulfill the TED
odd22 Dec 14, 2023
55ad785
tests: Update OSPF TE topotests
odd22 Dec 14, 2023
68edff1
Merge pull request #15026 from Orange-OpenSource/ospf-te
donaldsharp Dec 14, 2023
594be7d
Merge pull request #15025 from donaldsharp/dplane_fpm_nl_wedgied
mjstapp Dec 14, 2023
db4bdf7
Merge pull request #15023 from opensourcerouting/fix/drop_redundant_v…
donaldsharp Dec 15, 2023
a912f8f
Merge pull request #15015 from donaldsharp/test_ospf_suppress_fa_cleanup
ton31337 Dec 15, 2023
4d74ba9
bgpd: "default-originate" shouldn't withdraw non-default routes
leonshaw Dec 15, 2023
f38687b
lib, bgpd, nhrpd: Cleanup memory in lib/resolver on shutdown
donaldsharp Dec 16, 2023
e700069
nhrpd: Cleanup a hash on nhrp shutdown
donaldsharp Dec 16, 2023
66c78c6
bgpd: Use CAPABILITY_CODE_ADDPATH_LEN instead of numeric value
ton31337 Dec 17, 2023
e09b5af
Merge pull request #15035 from donaldsharp/more_frr_memory_leaks_on_s…
ton31337 Dec 17, 2023
0f05e56
bgpd: Validate Addpath capability flags per AF
ton31337 Dec 17, 2023
4538247
tests: Check for 0.0.0.0/1 in bgp_default_route
leonshaw Dec 18, 2023
5d4af03
bgpd: rework debug nexthop in separate function
pguibert6WIND Dec 12, 2023
237ebf8
bgpd: rework bgp_zebra_announce() function, separate nexthop handling
pguibert6WIND Dec 12, 2023
d8477d4
bgpd, lib: add zapi_route_set_nhg_id() support
pguibert6WIND Dec 12, 2023
24ecc73
Merge pull request #15032 from leonshaw/fix/bgp-default-withdraw
ton31337 Dec 18, 2023
b3e5ee5
Merge pull request #15037 from opensourcerouting/fix/validate_send_re…
donaldsharp Dec 18, 2023
490928b
Merge pull request #15036 from opensourcerouting/fix/use_constants_fo…
donaldsharp Dec 18, 2023
066f379
Merge pull request #15022 from opensourcerouting/fix/change_to_log.error
donaldsharp Dec 18, 2023
a3388fa
Merge pull request #15002 from donaldsharp/bgp_evpn_label_no_delete
riw777 Dec 19, 2023
d1b3f07
Revert "bgpd: When receiving a label, store it"
donaldsharp Dec 19, 2023
b6cb72f
Merge pull request #15046 from FRRouting/revert-15002-bgp_evpn_label_…
riw777 Dec 19, 2023
dec87fa
ospfd: Fix opaque functab leak and opaque AS cleanup problems
Dec 19, 2023
bbda45a
Merge pull request #15047 from LabNConsulting/aceelindem/fix-opaque-f…
riw777 Dec 20, 2023
1332be5
zebra: Drop ipv6_address_configured() function
ton31337 Dec 21, 2023
02f8cf7
zebra: Push all configured IP addresses when the interface comes up
ton31337 Dec 21, 2023
f95479b
zebra: Show IPv6 link-local interfaces under `show interface` output
ton31337 Dec 21, 2023
7477d87
tests: Auto generate support bundle when a test fails
donaldsharp Dec 21, 2023
1aa6c5e
tests: Stop some warning messages on test runs
donaldsharp Dec 21, 2023
daa80a5
tools: Add some more data to support bundles
donaldsharp Dec 21, 2023
cb777f9
zebra: Show IPv6 link-local interfaces under `show interface brief` o…
ton31337 Dec 21, 2023
09fbf2e
lib: Keychain.c was using free
donaldsharp Dec 21, 2023
1225954
Merge pull request #15060 from donaldsharp/keychain_free_no_i_really_…
ton31337 Dec 22, 2023
eba1c1e
Merge pull request #15059 from donaldsharp/generate_support_bundle_on…
ton31337 Dec 22, 2023
47bce17
redhat: rpm spec: added protobuf-c to deps & fix bogus changelog date
k0ste Dec 21, 2023
c733a38
github: Mark the build as failed if 'do not merge' label is set
ton31337 Dec 22, 2023
4907ce9
doc: add graphiz dependency for dev docs
idryzhov Dec 22, 2023
c3c5431
Merge pull request #15053 from opensourcerouting/fix/drop_ipv6_addres…
idryzhov Dec 22, 2023
080299f
Merge pull request #15063 from idryzhov/dev-doc-graphviz
qlyoung Dec 24, 2023
8790457
lib: add simplified native msg support
choppsv1 Jul 6, 2023
80cac37
lib: yang: add tree "printing" utility functions
choppsv1 Jul 9, 2023
fa00a2f
bgpd: revamp evpn debugs nexthop and l3vni
chiragshah6 Dec 27, 2023
39b8872
bgpd: fix coverity warnings about evpn vpn variable
Sep 7, 2022
42949ed
bgpd: lttng tp add ethtag to macip zebra send
chiragshah6 Sep 7, 2023
772f6c0
lib: step 1: mgmtd: add FE get-tree functionality
choppsv1 Oct 30, 2023
4fee273
lib: step 2: mgmtd: BE client code for get-tree functionality
choppsv1 Oct 30, 2023
33b9c2e
mgmtd: step 3: BE adapter native message handling
choppsv1 Jul 7, 2023
be2424a
mgmtd: step 4: FE adapter get-tree functionality
choppsv1 Jul 7, 2023
8df542b
mgmtd: step 5: add get-tree txn functionality
choppsv1 Jul 7, 2023
9cd8693
mgmtd: step 6: remove old unfinished get-data code
choppsv1 Oct 10, 2023
1bb6f21
tests: add debugs and count in static_simple test
choppsv1 Oct 27, 2023
f3d6edc
lib: darr: add new access and str functions
choppsv1 Oct 16, 2023
db0211d
lib: yang: add new functions
choppsv1 Oct 20, 2023
d58653a
lib: northbound: improve xpath functionality
choppsv1 Oct 10, 2023
408ee24
lib: create and use libyang tree during oper-state walk
choppsv1 Oct 14, 2023
60a8cf7
tools: add more libyang iter macros to .clang-format
choppsv1 Oct 31, 2023
356c01b
lib: yang: add yang_get_node_keys() function
choppsv1 Dec 26, 2023
b7db6b2
lib: darr: add ability to set MTYPE for dynamic arrays
choppsv1 Dec 16, 2023
ad1ccb6
lib: northbound: add yielding and batching to oper-state queries
choppsv1 Oct 30, 2023
4e0147a
lib: add dedicated API functions for native msgs
choppsv1 Dec 13, 2023
ef91d34
zebra: add zebra to mgmtd oper-state
choppsv1 Oct 3, 2023
d266b1c
zebra: support yielding between oper state routes query
choppsv1 Oct 20, 2023
c521d45
zebra: fix oper-state walk bug
choppsv1 Oct 22, 2023
d0f71a9
zebra: fix cleanup of mgmt backend state
choppsv1 Nov 1, 2023
b8b5290
lib: fixes required after rebasing
choppsv1 Dec 9, 2023
2bb115f
tests: client testing
choppsv1 Nov 28, 2023
f725838
tests: add mgmt_oper topotest
choppsv1 Oct 22, 2023
353ee7b
Merge pull request #14492 from LabNConsulting/oper-state
idryzhov Dec 29, 2023
db11968
lib: fix coverity CID 1574977
choppsv1 Dec 30, 2023
913892e
mgmtd: fix coverity CID 1574978
choppsv1 Dec 30, 2023
b28cd40
lib: fix coverity CID 1574979
choppsv1 Dec 30, 2023
30e63f2
mgmtd: fix coverity CID 1574980
choppsv1 Dec 30, 2023
1a7b50a
lib: fix coverity CID 1574981
choppsv1 Dec 30, 2023
39e0f33
lib: mgmtd: increase soft-max msg size to 64K
choppsv1 Dec 30, 2023
c00002d
build: protobuf is required so update building docs
choppsv1 Dec 30, 2023
d8689cc
bgpd: unimport evpn routes when implicit withdraw
chiragshah6 Dec 21, 2023
e684b42
Merge pull request #15066 from chiragshah6/mdev1
ton31337 Jan 2, 2024
bfe52f8
Merge pull request #15068 from chiragshah6/zdev
ton31337 Jan 2, 2024
7e65956
lib: fix specific entry queries
choppsv1 Jan 1, 2024
784c93c
pathd: add dynamic candidate path metric [computed] keyword
pguibert6WIND Jan 2, 2024
412eec1
lib: don't count on scheme key nodes being first children
choppsv1 Jan 2, 2024
0fb3dda
Merge pull request #15075 from pguibert6WIND/pathd_metric_computed
donaldsharp Jan 2, 2024
f6ae118
Merge pull request #15076 from LabNConsulting/chopps/libyang-no-schem…
donaldsharp Jan 2, 2024
60f0996
Merge pull request #15073 from LabNConsulting/chopps/fix-yang-key-que…
donaldsharp Jan 2, 2024
da7668f
Merge pull request #15071 from LabNConsulting/chopps/building-cleanup
donaldsharp Jan 2, 2024
de01b61
Merge pull request #15070 from LabNConsulting/chopps/fix-coverity-errors
donaldsharp Jan 2, 2024
54c2d32
Merge pull request #12261 from cscarpitta/srv6-encap-src-addr
riw777 Jan 2, 2024
077fc27
Merge pull request #15062 from opensourcerouting/fix/mark_as_failed_i…
donaldsharp Jan 2, 2024
2e69afd
Merge pull request #15055 from opensourcerouting/fix/zebra_ipv6_ll_co…
riw777 Jan 2, 2024
2aef695
Merge pull request #15074 from chiragshah6/fdev4
riw777 Jan 2, 2024
9fa9a9d
isisd: fix _isis_spftree_del heap-use-after-free
louis-6wind Jan 3, 2024
d2661a3
doc: add diagram of oper-state queries.
choppsv1 Jan 4, 2024
87a0e1f
lib: remove unused/replaced oper-state iteration code
choppsv1 Jan 4, 2024
a061ba2
zebra: `ctx` has to be non NULL at this point
cscarpitta Jan 4, 2024
e266c44
lib: fix memory leak when disabling nexthop_hold contexts
pguibert6WIND Dec 6, 2023
6001c76
bgpd: fix ecommunity_fill_pbr_action heap-buffer-overflow
louis-6wind Jan 4, 2024
4e249eb
Merge pull request #15083 from louis-6wind/fix-isis_spftree_del
donaldsharp Jan 4, 2024
1038710
lib: Breakout sendmmsg into it's own header
donaldsharp Jan 4, 2024
2bf051a
*: Remove Crypto openSSL define from zebra.h
donaldsharp Jan 4, 2024
78690de
lib: Move some priviledge headers to file they are used.
donaldsharp Jan 4, 2024
a57379f
bgpd: rfapi was not using internal zlog_backtrace()
donaldsharp Jan 4, 2024
fbc3115
lib: HAVE_GLIBC_BACKTRACE does not belong in zebra.h
donaldsharp Jan 4, 2024
ca54540
lib: Remove inclusion of various MAXINT from zebra.h
donaldsharp Jan 4, 2024
75b3e82
*: Remove cost of including netinet/icmp.h everywhere
donaldsharp Jan 4, 2024
1b1fc14
lib: Remove in_systm.h it is never used
donaldsharp Jan 4, 2024
88f8c90
lib, vtysh: Remove inclusion of grp.h for everyone
donaldsharp Jan 4, 2024
2700519
*: Remove sys/ioctl.h from zebra.h
donaldsharp Jan 4, 2024
d69ac58
lib, sharpd: Move sys/resource.h to where it is used
donaldsharp Jan 4, 2024
0b4ff79
*: sys/uio.h does not need to be in zebra.h
donaldsharp Jan 4, 2024
cbc1878
lib: zebra.h does not need to include syslog.h
donaldsharp Jan 4, 2024
496d87c
lib: sys/utsname.h is not needed in zebra.h
donaldsharp Jan 4, 2024
ae1d854
lib: fix initializer warning on centos 7.
choppsv1 Jan 5, 2024
c6fe42f
lib: remove zebra_interface_vrf_update_read()
louis-6wind Jan 5, 2024
4494beb
Merge pull request #15095 from LabNConsulting/chopps/fix-centos-warn
donaldsharp Jan 5, 2024
d04349e
Merge pull request #15086 from LabNConsulting/chopps/remove-old-oper-…
donaldsharp Jan 5, 2024
4038b6d
Merge pull request #15097 from louis-6wind/cleanup_vrf_update
donaldsharp Jan 5, 2024
88046da
Merge pull request #15091 from louis-6wind/fix-ecommunity_fill_pbr_ac…
donaldsharp Jan 5, 2024
96067c7
Merge pull request #15089 from pguibert6WIND/asan_sharpd_fix
donaldsharp Jan 5, 2024
75490f2
Merge pull request #15087 from cscarpitta/fix/fix-cid-1575079
donaldsharp Jan 5, 2024
8d7d560
Merge pull request #15085 from LabNConsulting/chopps/mgmtd-doc-update
donaldsharp Jan 5, 2024
43331c0
Merge pull request #15092 from donaldsharp/lib_zebra_h_cleanup
choppsv1 Jan 5, 2024
4d29c17
Merge pull request #15054 from k0ste/help
ton31337 Jan 6, 2024
db3ac9d
build: require libyang 2.1.128
choppsv1 Jan 6, 2024
0222f55
Revert "bgpd: On shutdown do not create a workqueue for the self peer"
mwinter-osr Jan 6, 2024
02049ff
bgpd: bgp_sync_label_manager failure case
donaldsharp Jan 7, 2024
5146ba7
lib: Use event name instead of thread
donaldsharp Jan 7, 2024
d2fe193
Merge pull request #15105 from donaldsharp/event_thread_mishap
ton31337 Jan 7, 2024
8c382a6
doc: Rename `show thread ...` to `show event ...`
ton31337 Jan 7, 2024
2435c21
tools: Rename `show thread ...` to `show event ...`
ton31337 Jan 7, 2024
1903b81
tests: Rename `show thread ...` to `show event ...`
ton31337 Jan 7, 2024
e0422df
vtysh: Rename `show thread ...` to `show event ...`
ton31337 Jan 7, 2024
7e6b4f7
doc: Rename `Thread` to `Event` in events example
ton31337 Jan 7, 2024
fa62132
Merge pull request #15104 from donaldsharp/label_pool_manager
ton31337 Jan 7, 2024
7a474b8
bgpd: Add `debug bgp updates detail` command
ton31337 Jan 7, 2024
00138ff
lib: fix clang SA warnings
choppsv1 Jan 7, 2024
cf67a7e
lib: mgmtd: implement full XPath 1.0 predicate functionality
choppsv1 Jan 6, 2024
1e4229f
lib: use libyang functions if they are present
choppsv1 Jan 6, 2024
e85ff7a
tests: test new XPath 1.0 predicate functionality
choppsv1 Jan 6, 2024
7335117
Merge pull request #15102 from opensourcerouting/Revert-memleak-PR14811
donaldsharp Jan 7, 2024
6d72776
Revert "zebra: Cleanup zrouter.stale_client_list on shutdown"
donaldsharp Jan 7, 2024
ea9d2b8
Merge pull request #15101 from LabNConsulting/chopps/new-libyang-req
donaldsharp Jan 7, 2024
bed55ec
bgpd: show_adj_route_vpn always leaked json memory
donaldsharp Jan 7, 2024
2022141
Merge pull request #15110 from donaldsharp/revert_zrouter.stale_client
choppsv1 Jan 8, 2024
b1a3954
tests: Add mgmtd to the official pytest.mark list
donaldsharp Jan 8, 2024
482f082
Merge pull request #15111 from donaldsharp/json_vpn_wait_what
ton31337 Jan 8, 2024
87a9227
Merge pull request #15119 from donaldsharp/pytest_mgmtd
ton31337 Jan 8, 2024
74c1d4f
bgpd: Fix memory leak for default-originate with route-map
ton31337 Jan 8, 2024
956b615
Merge pull request #15106 from opensourcerouting/fix/rename_thread_cli
donaldsharp Jan 8, 2024
8f3d99b
bgpd: Drop BGP_DEBUG_PACKET_SEND_DETAIL/BGP_DEBUG_PACKET_SEND consts
ton31337 Jan 9, 2024
546fe31
bgpd: Change printing format `show debugging` for `debug bgp updates`
ton31337 Jan 9, 2024
92d0242
Merge pull request #15120 from opensourcerouting/fix/memory_leak_for_…
donaldsharp Jan 9, 2024
d5a0a70
Merge pull request #15001 from pguibert6WIND/zebra_nexthop_rework
riw777 Jan 9, 2024
6c87068
Merge pull request #15108 from opensourcerouting/fix/debug_bgp_update…
riw777 Jan 9, 2024
153ab6e
Merge pull request #15122 from opensourcerouting/fix/drop_packet_send…
donaldsharp Jan 9, 2024
22b4390
Merge pull request #15103 from LabNConsulting/chopps/oper-filter
donaldsharp Jan 9, 2024
7497d33
lib: select.h is not being used by anyone
donaldsharp Jan 4, 2024
848dcf3
*: remove sys/stat.h from zebra.h
donaldsharp Jan 4, 2024
7f3d9ea
lib: remove net/route.h it is not used
donaldsharp Jan 4, 2024
33744ae
lib: zebra.h was including compiler.h two times
donaldsharp Jan 4, 2024
c6d94a7
*: zebra.h should not have fcntl.h
donaldsharp Jan 4, 2024
b6f1a40
lib: zebra.h uses pwd.h when it should not
donaldsharp Jan 4, 2024
8049f74
lib: zebra.h is not using signal.h
donaldsharp Jan 5, 2024
68eca30
lib: stdbool.h is not being used by zebra.h
donaldsharp Jan 5, 2024
7c1a8f7
lib: string.h was only used by vector.c make it better
donaldsharp Jan 5, 2024
f982bdd
zebra: Nothing is using errno.h
donaldsharp Jan 5, 2024
c402a0b
lib: limits.h is not needed by zebra.h
donaldsharp Jan 5, 2024
e92a7e9
bgpd: Clean up issues found in SA with clang 14
donaldsharp Jan 5, 2024
be80dbc
pimd: Cleanup SA issue with value never used
donaldsharp Jan 5, 2024
84877e6
ospf6d: Value set is never used
donaldsharp Jan 5, 2024
3f03ec1
bgpd: data is set but never used
donaldsharp Jan 5, 2024
54ed53f
zebra: SA incorrectly believes a NULL pointer
donaldsharp Jan 5, 2024
5519c0f
lib: fix oper-state memleak
choppsv1 Jan 9, 2024
4c87548
Merge pull request #15123 from LabNConsulting/chopps/fix-oper-state-m…
ton31337 Jan 10, 2024
26be39c
Merge pull request #15100 from donaldsharp/SA_problems_local
ton31337 Jan 10, 2024
9e06f93
lib: use snmp's large fd sets for agentx
Dec 8, 2023
5fbf0cc
Merge pull request #15124 from fdumontet6WIND/large_fds
donaldsharp Jan 11, 2024
d3177d9
doc: Change the link to libyang for 2.1.x
ton31337 Jan 11, 2024
79b9928
doc: Fix documentation warning on the required version of libyang
ton31337 Jan 11, 2024
a8474e4
bgpd: Prefer routes over eBGP versus eBGP-OAD
ton31337 Jan 11, 2024
584b031
bgpd: Show external session sub-type (OAD) if exists
ton31337 Jan 11, 2024
1c491df
tests: Check if the route over eBGP is preferred when eBGP-OAD is used
ton31337 Jan 11, 2024
a56beac
bgpd: Allow sending Origin Validation State extended community over E…
ton31337 Jan 11, 2024
67e8ef2
Merge pull request #15098 from donaldsharp/lib_zebra_h_cleanup_2
ton31337 Jan 11, 2024
5d1a314
lib: split nb_operation into two types
idryzhov Oct 5, 2023
76e4eb8
mgmtd, lib: implement CREATE_EXCL operation
idryzhov Oct 5, 2023
3c2598a
mgmt, lib: differentiate DELETE and REMOVE operations
idryzhov Oct 6, 2023
fe0d4dc
lib: move dnode creation into a separate function
idryzhov Oct 9, 2023
d726114
mgmt, lib: implement REPLACE operation
idryzhov Oct 9, 2023
7e48299
lib: explain semantics of northbound operations
idryzhov Nov 13, 2023
32a4c40
lib: implement missing YANG choice/case statements.
choppsv1 Jan 11, 2024
7b7725f
lib: change type of `inner` to `struct lyd_node *`, cleaner code
choppsv1 Jan 11, 2024
86cbd58
Merge pull request #15128 from opensourcerouting/fix/bgp_oad_ECOMMUNI…
donaldsharp Jan 11, 2024
0eac9b6
mgmtd: don't try to send config to disconnected clients
idryzhov Jan 11, 2024
3472197
lib, mgmtd: rename ignore_cbs to ignore_cfg_cbs
idryzhov Jan 11, 2024
883f134
Merge pull request #15131 from LabNConsulting/chopps/oper-choice-case
idryzhov Jan 11, 2024
e754620
Merge pull request #15134 from idryzhov/fix-commit-clients
choppsv1 Jan 12, 2024
e1ec5b7
Merge pull request #15127 from opensourcerouting/fix/doc_libyang_arti…
choppsv1 Jan 12, 2024
0f5a79a
Merge pull request #15136 from idryzhov/ignore-cbs
ton31337 Jan 12, 2024
20d0d47
Merge pull request #14542 from idryzhov/nb-op-cb-split
choppsv1 Jan 12, 2024
8a0a6bd
bgp: Using variable after free
RodrigoMNardi Jun 26, 2023
f9beaca
bgp: Using variable after free
RodrigoMNardi Jun 26, 2023
2df14b9
doc: test_isis_snmp.py typo
RodrigoMNardi Jun 28, 2023
8515254
doc: missing semicolon
RodrigoMNardi Sep 12, 2023
291d6c4
doc: missing semicolon
RodrigoMNardi Jul 18, 2023
1a5f8e9
doc: missing semicolon
RodrigoMNardi Aug 3, 2023
0336618
doc: missing semicolon
RodrigoMNardi Sep 13, 2023
ca399be
doc: missing semicolon
RodrigoMNardi Sep 14, 2023
a6e5707
doc: missing semicolon
RodrigoMNardi Sep 15, 2023
144c6a4
doc: updating README.md
RodrigoMNardi Nov 9, 2023
5fc8767
doc: updating README.md
RodrigoMNardi Nov 10, 2023
e29b040
doc: updating README.md
RodrigoMNardi Nov 10, 2023
5cdd63d
doc: updating README.md
RodrigoMNardi Nov 14, 2023
0aa1660
doc: updating README.md
RodrigoMNardi Nov 16, 2023
94d4c86
doc: updating README.md
RodrigoMNardi Nov 16, 2023
0fa8a4a
doc: updating README.md
RodrigoMNardi Nov 16, 2023
b997050
doc: updating README.md
RodrigoMNardi Nov 16, 2023
ecc381a
doc: updating README.md
RodrigoMNardi Nov 17, 2023
1c5ed9f
doc: updating README.md
RodrigoMNardi Nov 21, 2023
0dc1c63
doc: updating README.md
RodrigoMNardi Nov 22, 2023
dc48892
doc: updating README.md
RodrigoMNardi Nov 22, 2023
f0197fc
doc: updating README.md
RodrigoMNardi Nov 22, 2023
282b9e2
doc: updating README.md
RodrigoMNardi Nov 22, 2023
82870b5
doc: updating README.md
RodrigoMNardi Nov 22, 2023
fb7e469
doc: updating README.md
RodrigoMNardi Nov 22, 2023
d687cbb
doc: updating README.md
RodrigoMNardi Nov 22, 2023
e57eeff
doc: updating README.md
RodrigoMNardi Nov 22, 2023
7450ebc
doc: updating README.md
RodrigoMNardi Nov 22, 2023
150d04e
doc: updating README.md
RodrigoMNardi Nov 22, 2023
478cba0
doc: updating README.md
RodrigoMNardi Nov 22, 2023
612b228
doc: updating README.md
RodrigoMNardi Nov 22, 2023
77bc5e9
doc: updating README.md
RodrigoMNardi Nov 22, 2023
ebdaf7c
doc: updating README.md
RodrigoMNardi Nov 22, 2023
598c5a5
doc: updating README.md
RodrigoMNardi Nov 22, 2023
b3af039
doc: updating README.md
RodrigoMNardi Nov 22, 2023
0591ed4
doc: updating README.md
RodrigoMNardi Nov 22, 2023
29ff050
doc: updating README.md
RodrigoMNardi Nov 22, 2023
35ca12e
doc: updating README.md
RodrigoMNardi Nov 23, 2023
21b743f
doc: updating README.md
RodrigoMNardi Nov 23, 2023
e6b8475
doc: updating README.md
RodrigoMNardi Nov 23, 2023
5953ea7
doc: updating README.md
RodrigoMNardi Nov 24, 2023
994277d
doc: updating README.md
RodrigoMNardi Nov 24, 2023
7db4f4d
doc: updating README.md
RodrigoMNardi Nov 24, 2023
4343bc6
doc: updating README.md
RodrigoMNardi Nov 24, 2023
2408044
doc: updating README.md
RodrigoMNardi Nov 24, 2023
6790703
doc: updating README.md
RodrigoMNardi Nov 27, 2023
d202c74
doc: updating README.md
RodrigoMNardi Nov 27, 2023
c3b51ec
doc: updating README.md
RodrigoMNardi Jan 11, 2024
40cece6
doc: updating README.md
RodrigoMNardi Jan 11, 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
  •  
  •  
  •  
287 changes: 202 additions & 85 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,92 +1,209 @@
# SPDX-License-Identifier: GPL-2.0
# clang-format configuration file. Intended for clang-format >= 11.
#
# For more information, see:
#
# Documentation/process/clang-format.rst
# https://clang.llvm.org/docs/ClangFormat.html
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
---
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AlwaysBreakBeforeMultilineStrings: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
IndentCaseLabels: false
AlignEscapedNewlinesLeft: false
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
# FRR: Right
AlignEscapedNewlines: Right
AlignOperands: Align
# FRR: true
AlignTrailingComments: true
# FRR: true
AlignConsecutiveMacros: true
AllowAllParametersOfDeclarationOnNextLine: false
AlignAfterOpenBracket: true
SpaceAfterCStyleCast: false
MaxEmptyLinesToKeep: 2
BreakBeforeBinaryOperators: None
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: false
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: false
SortIncludes: false
IncludeCategories:
- Regex: '^(<|lib)'
Priority: 0
ColumnLimit: 80
# Linux: CommentPragmas: '^ IWYU pragma:'
CommentPragmas: '\$(FRR|clippy)'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
# Some taken from:
# git grep -h '^#define [^[:space:]]*frr_(each|with)[^[:space:]]*(' ./ \
# | sed "s,^#define \([^[:space:]]*frr_(each|with)[^[:space:]]*\)(.*$, - '\1'," \
# | LC_ALL=C sort -u
# and
# git grep -h '^#define [^[:space:]]*FOREACH[^[:space:]]*(' ./
# | sed "s,^#define \([^[:space:]]*FOREACH[^)]*\)(.*, - '\1',"
# | LC_ALL=C sort -u
ForEachMacros:
# lib
- frr_each
- frr_each_safe
- frr_each_from
- frr_rev_each
- frr_rev_each_safe
- frr_rev_each_from
- frr_with_mutex
- frr_with_privs
- LIST_FOREACH
- LIST_FOREACH_SAFE
- SLIST_FOREACH
- SLIST_FOREACH_SAFE
- SLIST_FOREACH_PREVPTR
- STAILQ_FOREACH
- STAILQ_FOREACH_SAFE
- TAILQ_FOREACH
- TAILQ_FOREACH_SAFE
- TAILQ_FOREACH_REVERSE
- TAILQ_FOREACH_REVERSE_SAFE
- RB_FOREACH
- RB_FOREACH_SAFE
- RB_FOREACH_REVERSE
- RB_FOREACH_REVERSE_SAFE
- SPLAY_FOREACH
- FOR_ALL_INTERFACES
- FOR_ALL_INTERFACES_ADDRESSES
- JSON_FOREACH
- FOREACH_BE_TXN_BATCH_IN_LIST
- FOREACH_BE_APPLY_BATCH_IN_LIST
- FOREACH_BE_TXN_IN_LIST
- FOREACH_SESSION_IN_LIST
- FOREACH_MGMTD_BE_CLIENT_ID
# libyang
- LY_FOR_KEYS
- LY_LIST_FOR
- LY_TREE_FOR
- LY_TREE_DFS_BEGIN
- LYD_TREE_DFS_BEGIN
# zebra
- RE_DEST_FOREACH_ROUTE
- RE_DEST_FOREACH_ROUTE_SAFE
- RNODE_FOREACH_RE
- RNODE_FOREACH_RE_SAFE
# bgpd
- UPDGRP_FOREACH_SUBGRP
- UPDGRP_FOREACH_SUBGRP_SAFE
- SUBGRP_FOREACH_PEER
- SUBGRP_FOREACH_PEER_SAFE
- SUBGRP_FOREACH_ADJ
- SUBGRP_FOREACH_ADJ_SAFE
- AF_FOREACH
- FOREACH_AFI_SAFI
- FOREACH_AFI_SAFI_NSF
- FOREACH_SAFI
# ospfd
- LSDB_LOOP
# mgmtd
- FOREACH_CMT_REC
- FOREACH_TXN_CFG_BATCH_IN_LIST
- FOREACH_TXN_REQ_IN_LIST
- FOREACH_TXN_IN_LIST
- FOREACH_MGMTD_DB_ID
- FOREACH_ADAPTER_IN_LIST
- FOREACH_SESSION_IN_LIST
- FOREACH_SESSION_IN_LIST_SAFE
# lib: outliers:
- 'FOR_ALL_INTERFACES'
# libyang outliers:
- 'LY_FOR_KEYS'
- 'LY_LIST_FOR'
- 'LYD_LIST_FOR_INST'
- 'LYD_LIST_FOR_INST_SAFE'
- 'LY_TREE_FOR'
- 'LY_TREE_DFS_BEGIN'
- 'LYD_TREE_DFS_BEGIN'
# ospfd outliers:
- 'LSDB_LOOP'
# first git grep
- 'darr_foreach_p'
- 'darr_foreach_i'
- 'frr_each'
- 'frr_each_safe'
- 'frr_each_from'
- 'frr_rev_each'
- 'frr_rev_each_safe'
- 'frr_rev_each_from'
- 'frr_with_mutex'
- 'frr_with_privs'
# second git grep
- 'AF_FOREACH'
- 'FOREACH_ADAPTER_IN_LIST'
- 'FOREACH_AFI_SAFI'
- 'FOREACH_AFI_SAFI_NSF'
- 'FOREACH_BE_APPLY_BATCH_IN_LIST'
- 'FOREACH_BE_CLIENT_BITS'
- 'FOREACH_BE_TXN_BATCH_IN_LIST'
- 'FOREACH_BE_TXN_IN_LIST'
- 'FOREACH_CMT_REC'
- 'FOREACH_MGMTD_BE_CLIENT_ID'
- 'FOREACH_MGMTD_DS_ID'
- 'FOREACH_SAFI'
- 'FOREACH_SESSION_IN_LIST'
- 'FOREACH_TXN_CFG_BATCH_IN_LIST'
- 'FOREACH_TXN_IN_LIST'
- 'FOREACH_TXN_REQ_IN_LIST'
- 'JSON_FOREACH'
- 'LIST_FOREACH'
- 'LIST_FOREACH_SAFE'
- 'RB_FOREACH'
- 'RB_FOREACH_REVERSE'
- 'RB_FOREACH_REVERSE_SAFE'
- 'RB_FOREACH_SAFE'
- 'RE_DEST_FOREACH_ROUTE'
- 'RE_DEST_FOREACH_ROUTE_SAFE'
- 'RNODE_FOREACH_RE'
- 'RNODE_FOREACH_RE_SAFE'
- 'SIMPLEQ_FOREACH'
- 'SIMPLEQ_FOREACH_SAFE'
- 'SLIST_FOREACH'
- 'SLIST_FOREACH_PREVPTR'
- 'SLIST_FOREACH_SAFE'
- 'SPLAY_FOREACH'
- 'STAILQ_FOREACH'
- 'STAILQ_FOREACH_SAFE'
- 'SUBGRP_FOREACH_ADJ'
- 'SUBGRP_FOREACH_ADJ_SAFE'
- 'SUBGRP_FOREACH_PEER'
- 'SUBGRP_FOREACH_PEER_SAFE'
- 'TAILQ_FOREACH'
- 'TAILQ_FOREACH_REVERSE'
- 'TAILQ_FOREACH_REVERSE_SAFE'
- 'TAILQ_FOREACH_SAFE'
- 'UPDGRP_FOREACH_SUBGRP'
- 'UPDGRP_FOREACH_SUBGRP_SAFE'
- 'XSIMPLEQ_FOREACH'
- 'XSIMPLEQ_FOREACH_SAFE'
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^(<|lib)'
Priority: 0
## New: XXX whats it mean?
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentGotoLabels: false
IndentPPDirectives: None
IndentWidth: 8
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
## Linux: MaxEmptyLinesToKeep: 1
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 8
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true

## Lowest Penalty Value wins. Values are used by clang-format to influence
## the brak decisions, it's a bit of voodoo magic though.
## Originally from linux which was "Taken from git's rules"
PenaltyBreakAssignment: 30
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
# Don't break a string into multi-string-fragments
PenaltyBreakString: 1000
# Allow going past the ColumnLimit to keep function arguments aligned
# with the open parenthesis.
PenaltyBreakBeforeFirstCallParameter: 1000
# Try and stay under ColumnLimit, but not at the cost of incomprehensible code.
PenaltyExcessCharacter: 30
PenaltyReturnTypeOnItsOwnLine: 60

PointerAlignment: Right
ReflowComments: false
SortIncludes: false
SortUsingDeclarations: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp03
TabWidth: 8
UseTab: Always
...
8 changes: 4 additions & 4 deletions .github/workflows/freeze.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Warn before merging if a "freeze" label exists
name: Warn before merging if a "freeze" or "do not merge" label exists

on:
pull_request_target:
types: [synchronize, opened, reopened, labeled, unlabeled]

jobs:
freeze_warning:
if: ${{ contains(github.event.*.labels.*.name, 'freeze') }}
name: Warn before merging if a "freeze" label exists
if: ${{ contains(github.event.*.labels.*.name, 'freeze') || contains(github.event.*.labels.*.name, 'do not merge') }}
name: Warn before merging if a "freeze" or "do not merge" label exists
runs-on: ubuntu-latest
steps:
- name: Check for "freeze" label
run: |
echo "Pull request is labeled as 'freeze'"
echo "Pull request is labeled as 'freeze' or 'do not merge'"
echo "This workflow fails so that the pull request cannot be merged."
exit 1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ internals is also available.
We welcome and appreciate all contributions, no matter how small!



Security
--------

Expand Down
6 changes: 3 additions & 3 deletions alpine/APKBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ makedepends="ncurses-dev net-snmp-dev gawk texinfo perl
expat fakeroot flex fortify-headers gdbm git gmp json-c-dev kmod
lddtree libacl libatomic libattr libblkid libburn libbz2 libc-dev
libcap-dev libcurl libedit libffi libgcc libgomp libisoburn libisofs
libltdl libressl libssh2 libstdc++ libtool libuuid
libltdl openssl libssh2 libstdc++ libtool libuuid
linux-headers lzip lzo m4 make mkinitfs mpc1 mpfr4 mtools musl-dev
ncurses-libs ncurses-terminfo ncurses-terminfo-base patch pax-utils pcre2
perl pkgconf python3 python3-dev readline readline-dev sqlite-libs pcre2-dev
squashfs-tools sudo tar texinfo xorriso xz-libs py-pip rtrlib rtrlib-dev
py3-sphinx elfutils elfutils-dev libyang-dev protobuf-c-compiler protobuf-c-dev
lua5.3-dev lua5.3"
py3-sphinx elfutils elfutils-dev protobuf-c-compiler protobuf-c-dev
lua5.3-dev lua5.3 gzip"
checkdepends="pytest py-setuptools"
install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
Expand Down
12 changes: 10 additions & 2 deletions babeld/babel_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,11 @@ interface_reset(struct interface *ifp)
babel_ifp->cost,
babel_ifp->ipv4 ? ", IPv4" : "");

if (babel_ifp->ipv4 != NULL){
free(babel_ifp->ipv4);
babel_ifp->ipv4 = NULL;
}

return 1;
}

Expand Down Expand Up @@ -734,12 +739,11 @@ int
is_interface_ll_address(struct interface *ifp, const unsigned char *address)
{
struct connected *connected;
struct listnode *node;

if(!if_up(ifp))
return 0;

FOR_ALL_INTERFACES_ADDRESSES(ifp, connected, node) {
frr_each (if_connected, ifp->connected, connected) {
if (connected->address->family == AF_INET6
&& memcmp(&connected->address->u.prefix6, address,
IPV6_MAX_BYTELEN)
Expand Down Expand Up @@ -1345,5 +1349,9 @@ babel_interface_allocate (void)
static void
babel_interface_free (babel_interface_nfo *babel_ifp)
{
if (babel_ifp->ipv4){
free(babel_ifp->ipv4);
babel_ifp->ipv4 = NULL;
}
XFREE(MTYPE_BABEL_IF, babel_ifp);
}
1 change: 0 additions & 1 deletion babeld/babel_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ static inline int
if_up(struct interface *ifp)
{
return (if_is_operative(ifp) &&
ifp->connected != NULL &&
CHECK_FLAG(babel_get_if_nfo(ifp)->flags, BABEL_IF_IS_UP));
}

Expand Down
Loading
Loading