]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
13 months agostaticd: Tell bfd that we are shutting down
Donald Sharp [Tue, 21 Mar 2023 12:55:35 +0000 (08:55 -0400)]
staticd: Tell bfd that we are shutting down

Prevent a use after free and tell the bfd subsystem
we are shutting down in staticd.

./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460:==2264460==ERROR: AddressSanitizer: heap-use-after-free on address 0x61f000004698 at pc 0x7f65d1eb11b2 bp 0x7ffdbface490 sp 0x7ffdbface488
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-READ of size 4 at 0x61f000004698 thread T0
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #0 0x7f65d1eb11b1 in zclient_bfd_command lib/bfd.c:307
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #1 0x7f65d1eb20f5 in _bfd_sess_send lib/bfd.c:507
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #2 0x7f65d20510aa in thread_call lib/thread.c:1989
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #3 0x7f65d2051f0a in _thread_execute lib/thread.c:2081
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #4 0x7f65d1eb271b in _bfd_sess_remove lib/bfd.c:544
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #5 0x7f65d1eb278d in bfd_sess_free lib/bfd.c:553
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #6 0x7f65d1eb5400 in bfd_protocol_integration_finish lib/bfd.c:1029
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #7 0x7f65d1f42f77 in hook_call_frr_fini lib/libfrr.c:41
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #8 0x7f65d1f494a1 in frr_fini lib/libfrr.c:1199
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #9 0x563b7abefd76 in sigint staticd/static_main.c:70
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #10 0x7f65d200ef91 in frr_sigevent_process lib/sigevent.c:115
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #11 0x7f65d204fac6 in thread_fetch lib/thread.c:1758
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #12 0x7f65d1f49377 in frr_run lib/libfrr.c:1184
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #13 0x563b7abefed1 in main staticd/static_main.c:160
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #14 0x7f65d1b92d09 in __libc_start_main ../csu/libc-start.c:308
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-    #15 0x563b7abefa99 in _start (/usr/lib/frr/staticd+0x15a99)
./bfd_topo3.test_bfd_topo3/r4.staticd.asan.2264460-

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
13 months agoMerge pull request #12688 from dorDiogo/isis_hello_padding_sometimes
Russ White [Mon, 20 Mar 2023 21:00:57 +0000 (17:00 -0400)]
Merge pull request #12688 from dorDiogo/isis_hello_padding_sometimes

isisd: Add support for IS-IS hello padding during-adjacency-formation

13 months agoMerge pull request #13050 from opensourcerouting/fix/update_snmp_mibs_doc
Donald Sharp [Sun, 19 Mar 2023 22:40:08 +0000 (18:40 -0400)]
Merge pull request #13050 from opensourcerouting/fix/update_snmp_mibs_doc

13 months agoMerge pull request #13049 from opensourcerouting/fix/missed_ipv6_prefix-list_any
Donald Sharp [Sun, 19 Mar 2023 22:38:38 +0000 (18:38 -0400)]
Merge pull request #13049 from opensourcerouting/fix/missed_ipv6_prefix-list_any

13 months agoMerge pull request #13047 from opensourcerouting/nhrpd-memleak-20230319
Donald Sharp [Sun, 19 Mar 2023 22:35:57 +0000 (18:35 -0400)]
Merge pull request #13047 from opensourcerouting/nhrpd-memleak-20230319

13 months agodoc: Use frrouting/frr-mibs repo downloading SNMP mibs
Donatas Abraitis [Sun, 19 Mar 2023 20:56:13 +0000 (22:56 +0200)]
doc: Use frrouting/frr-mibs repo downloading SNMP mibs

Use repo instead of pastebin.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
13 months agolib: Destroy `any` flag when creating a prefix-list entry with prefix
Donatas Abraitis [Sun, 19 Mar 2023 20:46:56 +0000 (22:46 +0200)]
lib: Destroy `any` flag when creating a prefix-list entry with prefix

The same as 61c07b9d43529f69f48ca54f4f0213cff52b5d0a, but forgot to put IPv6
in place.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
13 months agotests: Check if prefix-lists with IPv6 any works fine
Donatas Abraitis [Sun, 19 Mar 2023 20:46:35 +0000 (22:46 +0200)]
tests: Check if prefix-lists with IPv6 any works fine

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agonhrpd: drop peer references on freeing cache entry
David Lamparter [Sun, 19 Mar 2023 11:38:49 +0000 (12:38 +0100)]
nhrpd: drop peer references on freeing cache entry

When dropping an interface (e.g. at shutdown) while there are still
valid cache entries, the reference held on the cache entries' peer
pointers was leaking.

Fixes: #12505
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
14 months agoMerge pull request #13025 from donaldsharp/ospf_ti_lfa_leaks
Jafar Al-Gharaibeh [Sun, 19 Mar 2023 04:44:37 +0000 (23:44 -0500)]
Merge pull request #13025 from donaldsharp/ospf_ti_lfa_leaks

Ospf ti lfa leaks

14 months agoMerge pull request #13026 from chiragshah6/fdev1
Jafar Al-Gharaibeh [Sun, 19 Mar 2023 04:42:32 +0000 (23:42 -0500)]
Merge pull request #13026 from chiragshah6/fdev1

pbrd:fix mismatching in match src-dst

14 months agoMerge pull request #13038 from donaldsharp/ospf_apiserver_memleaks
Jafar Al-Gharaibeh [Sun, 19 Mar 2023 04:28:46 +0000 (23:28 -0500)]
Merge pull request #13038 from donaldsharp/ospf_apiserver_memleaks

ospfd: Cleanup some memory leaks on shutdown in ospf_apiserver.c

14 months agoospfd: Cleanup some memory leaks on shutdown in ospf_apiserver.c
Donald Sharp [Sat, 18 Mar 2023 19:35:34 +0000 (15:35 -0400)]
ospfd: Cleanup some memory leaks on shutdown in ospf_apiserver.c

Clean up some memory leaks found in ospf_apiserver.c  Also
a crash in the original implementation.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoMerge pull request #13023 from opensourcerouting/mld-expire-off
Donald Sharp [Sat, 18 Mar 2023 11:32:09 +0000 (07:32 -0400)]
Merge pull request #13023 from opensourcerouting/mld-expire-off

pimd: stop t_sg_expire in MLD NOINFO transition

14 months agoMerge pull request #13024 from opensourcerouting/fix/bgpd_prefix-list_changes_not_aff...
Donald Sharp [Sat, 18 Mar 2023 11:31:12 +0000 (07:31 -0400)]
Merge pull request #13024 from opensourcerouting/fix/bgpd_prefix-list_changes_not_affected

lib: Adjust only any flag for prefix-list entries if destroying

14 months agoMerge pull request #13027 from donaldsharp/evpn_crashit_like_you_wantit
Donatas Abraitis [Sat, 18 Mar 2023 08:22:33 +0000 (10:22 +0200)]
Merge pull request #13027 from donaldsharp/evpn_crashit_like_you_wantit

bgpd: Prevent Null pointer deref when outputting data

14 months agopbrd:fix mismatching in match src-dst
Chirag Shah [Fri, 17 Mar 2023 04:47:07 +0000 (21:47 -0700)]
pbrd:fix mismatching in match src-dst

upstream commit 67765a232d has incorect
address family check which prevent from
deleting src/dst config under pbr rule.

Ticket:#3405024
Issue:3405024
Testing Done:

Config:

pbr-map map6 seq 1
 match src-ip 2000::200:100:100:0/96
 match dst-ip 2000::100:100:100:0/96
 set nexthop-group group3

Before:
torc-12(config)# pbr-map map6 seq 1
torc-12(config-pbr-map)# no match src-ip 2000::200:100:100:0/96
Cannot mismatch families within match src/dst

After:
torc-12(config)# pbr-map map6 seq 1
torc-12(config-pbr-map)# no match src-ip 2000::200:100:100:0/96
torc-12(config-pbr-map)#

Signed-off-by: Chirag Shah <chirag@nvidia.com>
14 months agobgpd: Prevent Null pointer deref when outputting data
Donald Sharp [Fri, 17 Mar 2023 19:40:33 +0000 (15:40 -0400)]
bgpd: Prevent Null pointer deref when outputting data

Crash:

(gdb) bt
0  0x00007fee27de15cb in raise () from /lib/x86_64-linux-gnu/libpthread.so.0
1  0x00007fee280ecd9c in core_handler (signo=11, siginfo=0x7ffe56001bb0, context=<optimized out>) at lib/sigevent.c:264
2  <signal handler called>
3  0x0000555e321c41b2 in prefix_rd2str (prd=0x10, buf=buf@entry=0x7ffe56002080 "27.0.0.R\340\373\062\062^U", size=size@entry=28) at bgpd/bgp_rd.c:168
4  0x0000555e321c431a in printfrr_prd (buf=0x7ffe560021a0, ea=<optimized out>, ptr=<optimized out>) at bgpd/bgp_rd.c:224
5  0x00007fee2812069b in vbprintfrr (cb_in=cb_in@entry=0x7ffe56002330, fmt0=fmt0@entry=0x555e3229a3ad " RD: %pRD\n", ap=ap@entry=0x7ffe560023d8) at lib/printf/vfprintf.c:564
6  0x00007fee28122ef7 in vasnprintfrr (mt=mt@entry=0x7fee281cb5e0 <MTYPE_VTY_OUT_BUF>, out=out@entry=0x7ffe560023f0 " RD: : R\n", outsz=outsz@entry=1024, fmt=fmt@entry=0x555e3229a3ad " RD: %pRD\n", ap=ap@entry=0x7ffe560023d8) at lib/printf/glue.c:103
7  0x00007fee28103504 in vty_out (vty=vty@entry=0x555e33f82d10, format=format@entry=0x555e3229a3ad " RD: %pRD\n") at lib/vty.c:190
8  0x0000555e32185156 in bgp_evpn_es_show_entry_detail (vty=0x555e33f82d10, es=0x555e33c38420, json=<optimized out>) at bgpd/bgp_evpn_mh.c:2655
9  0x0000555e32188fe5 in bgp_evpn_es_show (vty=vty@entry=0x555e33f82d10, uj=false, detail=true) at bgpd/bgp_evpn_mh.c:2721
notice prd=0x10 in #3.  This is because in bgp_evpn_mh.c we are sending &es->es_base_frag->prd.

There is one spot in the code where during output the es->es_base_frag is checked for non nullness
Let's just make sure it's right in all the places.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoMerge pull request #13019 from rgirada/ospf_type3_fix
Renato Westphal [Fri, 17 Mar 2023 16:04:43 +0000 (13:04 -0300)]
Merge pull request #13019 from rgirada/ospf_type3_fix

ospfd: Ospf ABR doesnt Advertise LSA summary

14 months agoMerge pull request #13005 from donaldsharp/prefix_list_speedup
Russ White [Fri, 17 Mar 2023 15:19:38 +0000 (11:19 -0400)]
Merge pull request #13005 from donaldsharp/prefix_list_speedup

lib: Speedup prefix-list readin by a large factor

14 months agoospfd: Free up q_space in early return path
Donald Sharp [Fri, 17 Mar 2023 14:58:08 +0000 (10:58 -0400)]
ospfd: Free up q_space in early return path

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoospfd: Fix ospf_ti_lfa drop of an entire table
Donald Sharp [Fri, 17 Mar 2023 14:37:40 +0000 (10:37 -0400)]
ospfd: Fix ospf_ti_lfa drop of an entire table

The new_rtrs variable was just generated and then dropped.  Let's
fix that entirely

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agolib: Adjust only `any` flag for prefix-list entries if destroying
Donatas Abraitis [Fri, 17 Mar 2023 12:48:35 +0000 (14:48 +0200)]
lib: Adjust only `any` flag for prefix-list entries if destroying

Before this patch, if we destroy `any` flag for a prefix-list entry, we always
set destination as 0.0.0.0/0 and/or ::/0.

This means that, if we switch from `ip prefix-list r1-2 seq 5 deny any` to
`ip prefix-list r1-2 seq 5 permit 10.10.10.10/32` we will have
`permit any` eventually, which broke ACLs.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agotests: Check if route-map works correctly if modifying prefix-lists
Donatas Abraitis [Thu, 16 Mar 2023 12:39:40 +0000 (14:39 +0200)]
tests: Check if route-map works correctly if modifying prefix-lists

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agopimd: stop t_sg_expire in MLD NOINFO transition
David Lamparter [Fri, 17 Mar 2023 12:34:46 +0000 (13:34 +0100)]
pimd: stop t_sg_expire in MLD NOINFO transition

When hitting gm_sg_update from the S,G expiry timer, t_sg_expire will
already be cancelled.  But when arriving there from e.g. the MLD packet
getting cleared out, it'll still be running.

Clear out the timer if we arrive with `has_expired == true`.

Fixes: #12441
Reported-by: Vijay Kumar Gupta <vijayg@vmware.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
14 months agoMerge pull request #13016 from opensourcerouting/feature/ospf_logging_upstream_backport
Donald Sharp [Fri, 17 Mar 2023 11:55:09 +0000 (07:55 -0400)]
Merge pull request #13016 from opensourcerouting/feature/ospf_logging_upstream_backport

ospfd, ospfd6: Add more logging

14 months agoospfd: Ospf ABR doesnt Advertise LSA summary
rgirada [Fri, 17 Mar 2023 09:17:39 +0000 (09:17 +0000)]
ospfd: Ospf ABR doesnt Advertise LSA summary

Description:
OSPF ABR will summarise the networks based on configured range
and re-advtertise the summarised route. But if configured range
prefix id is same as one of the subset of routes prefix id then
as per rcf2328 Appendex-E recommendation, it will prepare the LSID and originate.
While re-advertising, it is using ospf LSDB instead of area specific
LSDB which is making it fail to re-advertise the summary lsa.
Fixed this by passing correct LSDB pointer.

Issue: #12995

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
14 months agoMerge pull request #13012 from donaldsharp/hold_time_reset
Donatas Abraitis [Fri, 17 Mar 2023 10:04:28 +0000 (12:04 +0200)]
Merge pull request #13012 from donaldsharp/hold_time_reset

bgpd: Always restart timer from scratch in OpenConfirm/Established

14 months agoospfd: Log Adjacency Changes with Neighbor IP in addition to Neighbor ID
Martin Winter [Wed, 26 Oct 2022 15:17:01 +0000 (08:17 -0700)]
ospfd: Log Adjacency Changes with Neighbor IP in addition to Neighbor ID

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoospfd, ospf6d: Add more logging details
Donatas Abraitis [Wed, 6 Apr 2022 19:15:57 +0000 (22:15 +0300)]
ospfd, ospf6d: Add more logging details

Basically just router-id or interface/IP.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #13009 from donaldsharp/nexthop_use_interface_name
Donatas Abraitis [Fri, 17 Mar 2023 07:56:00 +0000 (09:56 +0200)]
Merge pull request #13009 from donaldsharp/nexthop_use_interface_name

bgpd: Use interface name instead of pointer value

14 months agobgpd: Always restart timer from scratch in OpenConfirm/Established
Donald Sharp [Thu, 16 Mar 2023 23:19:04 +0000 (19:19 -0400)]
bgpd: Always restart timer from scratch in OpenConfirm/Established

Imagine this scenario:

A peer has very large hold/keepalive timers of 600/200.  This peer is
using the DataCenter default time.  As such the open will cause
the t_holdtime to be negotiated to 600 seconds.  Now also imagine
that both peers are in update-delay.  If we do not restart the
timers and both peers are in Update Delay, we will continously
reset the peer because the hold time will be hit( since the peer
is not sending us any data ).

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoMerge pull request #12999 from opensourcerouting/fix/bgp_leaks_random_stuff
Donald Sharp [Thu, 16 Mar 2023 23:12:55 +0000 (19:12 -0400)]
Merge pull request #12999 from opensourcerouting/fix/bgp_leaks_random_stuff

bgpd: aggregate routes memory leak for aspath

14 months agolib: Speedup prefix-list readin by a large factor
Donald Sharp [Wed, 15 Mar 2023 17:51:19 +0000 (13:51 -0400)]
lib: Speedup prefix-list readin by a large factor

Reading in prefix-lists is reading in the specified
prefix list and validating that the prefix is unique
2 times.  This makes no sense.  Relax the requirement
that a prefix list can limit this as well as completely
remove this check.  Validation then just becomes
does this prefix-list specified actually make sense
and that is taken care of by the the cli code.

Reading in prefix-lists was looking for duplicate prefixes
2 times instead of doing it just one time.  Let's just
not do it at all.

By doing this change, The code changes from never
completing for a 27k long prefix-list to taking
just under 30 seconds, with 4 daemons processing
this data.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agobgpd: Use interface name instead of pointer value
Donald Sharp [Thu, 16 Mar 2023 14:24:25 +0000 (10:24 -0400)]
bgpd: Use interface name instead of pointer value

Log message is borked in a manner that makes it unusable:
bgpd[52]: [VX6SM-8YE5W][EC 33554460] 2000:31:0:53::2: nexthop_set failed, resetting connection - intf 0x561eb9005a30

Let's print out the interface name instead.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoMerge pull request #13006 from opensourcerouting/bgp-gr-null-warning
Donald Sharp [Thu, 16 Mar 2023 11:41:10 +0000 (07:41 -0400)]
Merge pull request #13006 from opensourcerouting/bgp-gr-null-warning

bgpd: fix NULL argument warning

14 months agobgpd: fix NULL argument warning
David Lamparter [Thu, 16 Mar 2023 10:00:02 +0000 (11:00 +0100)]
bgpd: fix NULL argument warning

gcc 12.2.0 complains `error: ā€˜%sā€™ directive argument is null`, even
though all enum values are covered with a string.  Let's just go with a
`???` default.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
14 months agoMerge pull request #13002 from opensourcerouting/fix/missing_bgp_dest_unlock_node_lea...
Donald Sharp [Thu, 16 Mar 2023 01:54:15 +0000 (21:54 -0400)]
Merge pull request #13002 from opensourcerouting/fix/missing_bgp_dest_unlock_node_leak_update

14 months agoMerge pull request #12998 from opensourcerouting/clippy-python-init-api
Mark Stapp [Wed, 15 Mar 2023 15:33:35 +0000 (11:33 -0400)]
Merge pull request #12998 from opensourcerouting/clippy-python-init-api

lib: adapt clippy to Python 3.8+ init API

14 months agolib: adapt clippy to Python 3.8+ init API
David Lamparter [Wed, 15 Mar 2023 11:24:36 +0000 (12:24 +0100)]
lib: adapt clippy to Python 3.8+ init API

The old initialization/config API is deprecated in Python 3.11.  Make
clippy use the new one added in 3.8 if it's that version or newer.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
14 months agobgpd: Unlock bgp dest node if leak_update() fails
Donatas Abraitis [Wed, 15 Mar 2023 12:52:21 +0000 (14:52 +0200)]
bgpd: Unlock bgp dest node if leak_update() fails

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #12982 from opensourcerouting/fix/commmitlint_condition
Mark Stapp [Wed, 15 Mar 2023 12:20:48 +0000 (08:20 -0400)]
Merge pull request #12982 from opensourcerouting/fix/commmitlint_condition

tools: Use specific syntax for conditions for Github actions

14 months agobgpd: Free previously dup'ed aspath attribute for aggregate routes
Donatas Abraitis [Wed, 15 Mar 2023 11:31:58 +0000 (13:31 +0200)]
bgpd: Free previously dup'ed aspath attribute for aggregate routes

Fixes memory leak:

```
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233:Direct leak of 80 byte(s) in 2 object(s) allocated f
rom:
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    0 0x7fcce641b037 in __interceptor_calloc ../../
../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    1 0x7fcce601f874 in qcalloc lib/memory.c:105
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    2 0x55a9594c805e in aspath_dup bgpd/bgp_aspath.c:688
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    3 0x55a9594cf55b in bgp_aggr_aspath_prepare bgpd/bgp_aspath.c:2164
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    4 0x7fcce5fbc95a in hash_iterate lib/hash.c:252
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    5 0x55a9594cf82f in bgp_compute_aggregate_aspath_val bgpd/bgp_aspath.c:2223
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    6 0x55a9594cf5db in bgp_compute_aggregate_aspath bgpd/bgp_aspath.c:2179
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    7 0x55a9592740fb in bgp_add_route_to_aggregate bgpd/bgp_route.c:8035
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    8 0x55a9592750ec in bgp_aggregate_increment bgpd/bgp_route.c:8234
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    9 0x55a959263174 in bgp_update bgpd/bgp_route.c:4797
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    10 0x55a9592696c9 in bgp_nlri_parse_ip bgpd/bgp_route.c:6070
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    11 0x55a959210649 in bgp_nlri_parse bgpd/bgp_packet.c:339
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    12 0x55a95921a3a1 in bgp_update_receive bgpd/bgp_packet.c:2023
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    13 0x55a95922159b in bgp_process_packet bgpd/bgp_packet.c:2933
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    14 0x7fcce60eaa50 in thread_call lib/thread.c:1991
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    15 0x7fcce5fe2e54 in frr_run lib/libfrr.c:1185
./bgp_local_asn_dot.test_bgp_local_asn_dot_agg/r3.bgpd.asan.653233-    16 0x55a9590d256d in main bgpd/bgp_main.c:505
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agobgpd: Unlock dest if we return earlier for aggregate install
Donatas Abraitis [Mon, 13 Mar 2023 20:26:09 +0000 (22:26 +0200)]
bgpd: Unlock dest if we return earlier for aggregate install

If the bgp is in shutdown state or so, do not forget to unlock the dest node.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #12996 from chiragshah6/fdev1
Donatas Abraitis [Wed, 15 Mar 2023 08:21:02 +0000 (10:21 +0200)]
Merge pull request #12996 from chiragshah6/fdev1

tools: frr-reload fix list value not present

14 months agoMerge pull request #12310 from kuldeepkash/pim_v6
Donatas Abraitis [Wed, 15 Mar 2023 06:55:24 +0000 (08:55 +0200)]
Merge pull request #12310 from kuldeepkash/pim_v6

tests: [PIMv6] Adding multicast pim6 SM testsuite

14 months agotools: frr-reload fix list value not present
Chirag Shah [Wed, 15 Mar 2023 04:32:40 +0000 (21:32 -0700)]
tools: frr-reload fix list value not present

Check for value present in list before removing
as in certain python3 ValueError traceback is observed.

Traceback (most recent call last):
  File "/usr/lib/frr/frr-reload.py",
line 2278, in <module>
    (lines_to_add, lines_to_del, restart_frr)
= compare_context_objects(newconf, running)
  File "/usr/lib/frr/frr-reload.py",
line 1933, in compare_context_objects
    lines_to_add, lines_to_del
  File "/usr/lib/frr/frr-reload.py",
line 1549, in ignore_delete_re_add_lines
    lines_to_del.remove((ctx_keys, line))
ValueError: list.remove(x): x not in list

Ticket:#3389979
Issue:3389979

Testing Done:
With fix perform frr-relaod on frr.conf config where earlier
traceback was seen.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
14 months agoMerge pull request #12936 from opensourcerouting/ospf6d-out-filter-list
Russ White [Tue, 14 Mar 2023 15:33:44 +0000 (11:33 -0400)]
Merge pull request #12936 from opensourcerouting/ospf6d-out-filter-list

ospfd: correctly update outbound filter-list once prefix-list is updated

14 months agoMerge pull request #12990 from opensourcerouting/fix/rename_bgp_afi_node_lookup
Russ White [Tue, 14 Mar 2023 14:16:16 +0000 (10:16 -0400)]
Merge pull request #12990 from opensourcerouting/fix/rename_bgp_afi_node_lookup

bgpd: Drop afi from lookup functions (not used)

14 months agoMerge pull request #12989 from opensourcerouting/fix/memory_leaks_bgpd
Russ White [Tue, 14 Mar 2023 14:15:07 +0000 (10:15 -0400)]
Merge pull request #12989 from opensourcerouting/fix/memory_leaks_bgpd

bgpd: Free memory allocated by ecommunity_ecom2str()

14 months agoMerge pull request #12979 from miegl/isis_tun
Russ White [Tue, 14 Mar 2023 14:05:01 +0000 (10:05 -0400)]
Merge pull request #12979 from miegl/isis_tun

isisd: IS-IS over tunnel (GRE, GENEVE)

14 months agoMerge pull request #12965 from donaldsharp/gr_vrf_aware
Russ White [Tue, 14 Mar 2023 12:45:02 +0000 (08:45 -0400)]
Merge pull request #12965 from donaldsharp/gr_vrf_aware

zebra: Make GR debug logs at least vrf aware

14 months agoMerge pull request #12922 from opensourcerouting/ospf-gr-fixes
Russ White [Tue, 14 Mar 2023 12:38:36 +0000 (08:38 -0400)]
Merge pull request #12922 from opensourcerouting/ospf-gr-fixes

OSPF Graceful Restart fixes

14 months agobgpd: Drop afi_t from bgp_evpn_global_node_lookup()
Donatas Abraitis [Tue, 14 Mar 2023 10:05:58 +0000 (12:05 +0200)]
bgpd: Drop afi_t from bgp_evpn_global_node_lookup()

Not used.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agobgpd: Rename bgp_afi_node_lookup() to bgp_safi_node_lookup()
Donatas Abraitis [Tue, 14 Mar 2023 10:01:56 +0000 (12:01 +0200)]
bgpd: Rename bgp_afi_node_lookup() to bgp_safi_node_lookup()

afi not used in this function, reduce a bit.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agobgpd: Free memory allocated by ecommunity_ecom2str()
Donatas Abraitis [Tue, 14 Mar 2023 09:03:53 +0000 (11:03 +0200)]
bgpd: Free memory allocated by ecommunity_ecom2str()

Return local string, copied from returned value of ecom2str.

```
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690:Direct leak of 528 byte(s) in 8 object(s) allocated from:
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690-    0 0x7efcde5d6037 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690-    1 0x7efcde1dc7e2 in qcalloc lib/memory.c:105
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690-    2 0x5628a0592704 in ecommunity_ecom2str bgpd/bgp_ecommunity.c:947
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690-    3 0x7efcdaa558c8 in mplsL3vpnVrfRtTable bgpd/bgp_mplsvpn_snmp.c:1152
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690-    4 0x7efcda784139 in netsnmp_old_api_helper helpers/old_api.c:332
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690-
./bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn/r1.bgpd.asan.2925690-SUMMARY: AddressSanitizer: 528 byte(s) leaked in 8 allocation(s).
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #12978 from donaldsharp/multicast_address
mobash-rasool [Tue, 14 Mar 2023 05:48:35 +0000 (11:18 +0530)]
Merge pull request #12978 from donaldsharp/multicast_address

pimd: IN_MULTICAST needs host order

14 months agotools: Use specific syntax for conditions for Github actions
Donatas Abraitis [Mon, 13 Mar 2023 07:52:13 +0000 (09:52 +0200)]
tools: Use specific syntax for conditions for Github actions

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #12974 from donaldsharp/update_versioning
Donatas Abraitis [Sun, 12 Mar 2023 19:48:49 +0000 (21:48 +0200)]
Merge pull request #12974 from donaldsharp/update_versioning

bgpd: Increment version number even when no data is sent

14 months agoisisd: pfpacket BPF filter with IS-IS over tunnel support
Josef Miegl [Sun, 12 Mar 2023 15:15:27 +0000 (16:15 +0100)]
isisd: pfpacket BPF filter with IS-IS over tunnel support

Signed-off-by: Josef Miegl <josef@miegl.cz>
14 months agoMerge pull request #12923 from donaldsharp/update_group_debug
Donatas Abraitis [Sun, 12 Mar 2023 13:51:51 +0000 (15:51 +0200)]
Merge pull request #12923 from donaldsharp/update_group_debug

bgpd: Add missing items to debug for update group hash key creation

14 months agopimd: IN_MULTICAST needs host order
Donald Sharp [Sun, 12 Mar 2023 00:37:21 +0000 (19:37 -0500)]
pimd: IN_MULTICAST needs host order

New correct behavior:

eva# conf
eva(config)# ip pim rp 192.168.1.224 224.0.0.0/24
No Path to RP address specified: 192.168.1.224
eva(config)# ip pim rp 224.1.2.3 224.0.0.0/24
% Bad RP address specified: 224.1.2.3
eva(config)#

Fixes: #12970
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agobgpd: Increment version number even when no data is sent
Donald Sharp [Sat, 11 Mar 2023 17:05:44 +0000 (12:05 -0500)]
bgpd: Increment version number even when no data is sent

When an update group decides to not send a prefix
announcement because it has not changed, still increment
the version number.  Why?  To allow for the situation
where you have say 2 peers in 1 peer group and shortly
after they come up a 3rd peer comes up.  It will be
placed into a separate update group and could be
coalesced down, when it finishes updating all data
to it.  Now imagine that a single prefix changes at
this point in time as well.  Then first 2 peers may
decide to not send the data, since nothing has changed.
While the 3rd peer will and since the versions numbers
never match they will never coalesce.  So when the decision
is made to skip, update the version number as well.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoMerge pull request #12962 from opensourcerouting/fix/bgpd_ipv6_ll_peering
Jafar Al-Gharaibeh [Sat, 11 Mar 2023 05:09:07 +0000 (23:09 -0600)]
Merge pull request #12962 from opensourcerouting/fix/bgpd_ipv6_ll_peering

bgpd: Check if the peer is configured as interface when checking NHT

14 months agoMerge pull request #12967 from pguibert6WIND/show_zebra_mpls_empty
Donald Sharp [Fri, 10 Mar 2023 22:53:46 +0000 (17:53 -0500)]
Merge pull request #12967 from pguibert6WIND/show_zebra_mpls_empty

14 months agolib, bgpd: Add more debugs to GR Capability exchange
Donald Sharp [Thu, 9 Mar 2023 13:36:51 +0000 (08:36 -0500)]
lib, bgpd: Add more debugs to GR Capability exchange

a) Make it legible what type of message is being passed
back and forth instead of having to guess it from
the insufficient debugs

b) Make it explicit which bgp instance is sending this
data

c) Cleanup bgp_zebra_update to have a cleaner api

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agozebra: add json support when "show zebra mpls" returns nothing
Philippe Guibert [Fri, 3 Mar 2023 12:21:00 +0000 (13:21 +0100)]
zebra: add json support when "show zebra mpls" returns nothing

The "show zebra mpls .. json" vty command may return empty information
in case the MPLS database is empty or a given label entry is not
available. When those errors occur, add the braces to return a
valid json format.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
14 months agozebra: Make GR debug logs at least vrf aware
Donald Sharp [Wed, 8 Mar 2023 18:24:58 +0000 (13:24 -0500)]
zebra: Make GR debug logs at least vrf aware

The GR debug logs are doing all sorts of wonderful stuff
but they were not actually displaying anything useful to the operator
about what vrf we are operating in.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoMerge pull request #12963 from anlancs/fix/bgpd-keep-common
Donatas Abraitis [Wed, 8 Mar 2023 14:12:03 +0000 (16:12 +0200)]
Merge pull request #12963 from anlancs/fix/bgpd-keep-common

bgpd: Simplify the code for show command

14 months agobgpd: Simplify the code for show command
anlan_cs [Tue, 7 Mar 2023 00:50:00 +0000 (08:50 +0800)]
bgpd: Simplify the code for show command

Keep the common code for command: "show ip bgp summary [wide]".

Signed-off-by: anlan_cs <vic.lan@pica8.com>
14 months agotests: Check if IPv6 BGP Link-Local peering works
Donatas Abraitis [Tue, 7 Mar 2023 20:41:58 +0000 (22:41 +0200)]
tests: Check if IPv6 BGP Link-Local peering works

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agobgpd: Check if the peer is configured as interface when checking NHT
Donatas Abraitis [Tue, 7 Mar 2023 20:36:15 +0000 (22:36 +0200)]
bgpd: Check if the peer is configured as interface when checking NHT

This causes early return. peer->conf is NULL for IPv6 link-local peering,
and the session never establish.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #12890 from pguibert6WIND/attr_cleaning_misc
Russ White [Tue, 7 Mar 2023 14:46:24 +0000 (09:46 -0500)]
Merge pull request #12890 from pguibert6WIND/attr_cleaning_misc

bgp attribute cleaning misc

14 months agoMerge pull request #12940 from anlancs/fix/bfd-clean-echo
Russ White [Tue, 7 Mar 2023 14:33:33 +0000 (09:33 -0500)]
Merge pull request #12940 from anlancs/fix/bfd-clean-echo

bfdd: remove useless check for ECHO packet

14 months agoMerge pull request #12946 from opensourcerouting/fix/memory_leak_adj_out_set
Russ White [Tue, 7 Mar 2023 14:31:27 +0000 (09:31 -0500)]
Merge pull request #12946 from opensourcerouting/fix/memory_leak_adj_out_set

bgpd: Intern attributes before putting into rib-out

14 months agobgpd: Add missing items to debug for update group hash key creation
Donald Sharp [Wed, 1 Mar 2023 20:43:42 +0000 (15:43 -0500)]
bgpd: Add missing items to debug for update group hash key creation

There are some missing values in the debug lines.  Let's add them
in and help us understand.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agoMerge pull request #12960 from anlancs/doc/some-words-doc
Donatas Abraitis [Tue, 7 Mar 2023 06:25:50 +0000 (08:25 +0200)]
Merge pull request #12960 from anlancs/doc/some-words-doc

doc: Correct some words

14 months agoMerge pull request #12934 from LabNConsulting/ziemba/rfapi-memleak-cleanup-12478
Donatas Abraitis [Mon, 6 Mar 2023 19:19:36 +0000 (21:19 +0200)]
Merge pull request #12934 from LabNConsulting/ziemba/rfapi-memleak-cleanup-12478

bgpd/rfapi: memleak: clean CE tables at exit

14 months agoMerge pull request #12957 from opensourcerouting/fix/no_need_to_send_notification
Donald Sharp [Mon, 6 Mar 2023 14:45:40 +0000 (09:45 -0500)]
Merge pull request #12957 from opensourcerouting/fix/no_need_to_send_notification

bgpd: Do not send notification twice when parsing NLRI labels

14 months agoMerge pull request #12958 from opensourcerouting/fix/commitlint_master_branch
Donald Sharp [Mon, 6 Mar 2023 14:45:17 +0000 (09:45 -0500)]
Merge pull request #12958 from opensourcerouting/fix/commitlint_master_branch

tools: Do not run commit linter for other branches than master

14 months agotests: [PIMv6] Adding multicast pim6 SM testsuite
Kuldeep Kashyap [Sat, 12 Nov 2022 10:33:49 +0000 (02:33 -0800)]
tests: [PIMv6] Adding multicast pim6 SM testsuite

Automated new scenarios to multicast pim6
SM test suite. Added 10 test cases to verify
multicast PIM6-SM functionality.

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
Co-Auther: Vijay Kumar Gupta <vijayg@vmware.com>

14 months agotests: [PIMv6] F/W support for multicast pimv6 automation
Kuldeep Kashyap [Sat, 12 Nov 2022 10:31:48 +0000 (02:31 -0800)]
tests: [PIMv6] F/W support for multicast pimv6 automation

Enhanced or added new libraries to support
multicast pimv6 automation

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
Co-Auther: Vijay Kumar Gupta <vijayg@vmware.com>

14 months agodoc: Correct some words
anlan_cs [Tue, 28 Feb 2023 07:52:06 +0000 (15:52 +0800)]
doc: Correct some words

Note that `ASNUM` in table, it is missing right parenthesis for
`(1-4294967295)`. So, adjust this table.

And correct other words for doc.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
14 months agotools: Do not run commit linter for other branches than master
Donatas Abraitis [Sun, 5 Mar 2023 19:12:23 +0000 (21:12 +0200)]
tools: Do not run commit linter for other branches than master

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agobgpd: Do not send notification twice when parsing NLRI labels
Donatas Abraitis [Sun, 5 Mar 2023 18:56:05 +0000 (20:56 +0200)]
bgpd: Do not send notification twice when parsing NLRI labels

This is already handled in bgp_nlri_parse() by checking error code.

Even more, we should send error sub-code to be according the NLRI type.

If it's MP_UPDATE/MP_WITHDRAW, sub-code should be an Optional Attribute error.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #12951 from donaldsharp/label_decode_crash
Donatas Abraitis [Sun, 5 Mar 2023 18:49:51 +0000 (20:49 +0200)]
Merge pull request #12951 from donaldsharp/label_decode_crash

bgpd: Fix use beyond end of stream of labeled unicast parsing

14 months agoMerge pull request #12950 from harryreps/master
Donatas Abraitis [Sat, 4 Mar 2023 11:09:10 +0000 (13:09 +0200)]
Merge pull request #12950 from harryreps/master

babeld: fix #11808 to avoid infinite loops

14 months agobgpd: Fix use beyond end of stream of labeled unicast parsing
Donald Sharp [Sat, 4 Mar 2023 02:58:33 +0000 (21:58 -0500)]
bgpd: Fix use beyond end of stream of labeled unicast parsing

Fixes a couple crashes associated with attempting to read
beyond the end of the stream.

Reported-by: Iggy Frankovic <iggyfran@amazon.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
14 months agobabeld: fix #11808 to avoid infinite loops
harryreps [Fri, 3 Mar 2023 23:17:14 +0000 (23:17 +0000)]
babeld: fix #11808 to avoid infinite loops

Replacing continue in loops to goto done so that index of packet buffer
increases.

Signed-off-by: harryreps <harryreps@gmail.com>
14 months agoMerge pull request #12935 from opensourcerouting/ospf6d-la-bit
Mark Stapp [Fri, 3 Mar 2023 20:38:32 +0000 (15:38 -0500)]
Merge pull request #12935 from opensourcerouting/ospf6d-la-bit

ospf6d: fix processing of inter-area-prefix-LSAs with the LA-bit set

14 months agoMerge pull request #12937 from opensourcerouting/ospf6d-redist
Mark Stapp [Fri, 3 Mar 2023 20:38:02 +0000 (15:38 -0500)]
Merge pull request #12937 from opensourcerouting/ospf6d-redist

ospf6d: small fixes in the handling of redistributed routes

14 months agobgpd: Intern attributes before putting into rib-out
Donatas Abraitis [Fri, 3 Mar 2023 15:33:51 +0000 (17:33 +0200)]
bgpd: Intern attributes before putting into rib-out

```
==21860==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 80 byte(s) in 2 object(s) allocated from:
    0 0x7f8065294d28 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
    1 0x7f8064cfd216 in qcalloc lib/memory.c:105
    2 0x5646b7024073 in ecommunity_dup bgpd/bgp_ecommunity.c:252
    3 0x5646b7153585 in route_set_ecommunity_lb bgpd/bgp_routemap.c:2925
    4 0x7f8064d459be in route_map_apply_ext lib/routemap.c:2675
    5 0x5646b7116584 in subgroup_announce_check bgpd/bgp_route.c:2374
    6 0x5646b711b907 in subgroup_process_announce_selected bgpd/bgp_route.c:2918
    7 0x5646b717ceb8 in group_announce_route_walkcb bgpd/bgp_updgrp_adv.c:184
    8 0x7f8064cc6acd in hash_walk lib/hash.c:270
    9 0x5646b717ae0c in update_group_af_walk bgpd/bgp_updgrp.c:2046
    10 0x5646b7181275 in group_announce_route bgpd/bgp_updgrp_adv.c:1030
    11 0x5646b711a986 in bgp_process_main_one bgpd/bgp_route.c:3303
    12 0x5646b711b5bf in bgp_process_wq bgpd/bgp_route.c:3444
    13 0x7f8064da12d7 in work_queue_run lib/workqueue.c:267
    14 0x7f8064d891fb in thread_call lib/thread.c:1991
    15 0x7f8064cdffcf in frr_run lib/libfrr.c:1185
    16 0x5646b6feca67 in main bgpd/bgp_main.c:505
    17 0x7f8063f96c86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)

Indirect leak of 16 byte(s) in 2 object(s) allocated from:
    0 0x7f8065294b40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40)
    1 0x7f8064cfcf01 in qmalloc lib/memory.c:100
    2 0x5646b7024151 in ecommunity_dup bgpd/bgp_ecommunity.c:256
    3 0x5646b7153585 in route_set_ecommunity_lb bgpd/bgp_routemap.c:2925
    4 0x7f8064d459be in route_map_apply_ext lib/routemap.c:2675
    5 0x5646b7116584 in subgroup_announce_check bgpd/bgp_route.c:2374
    6 0x5646b711b907 in subgroup_process_announce_selected bgpd/bgp_route.c:2918
    7 0x5646b717ceb8 in group_announce_route_walkcb bgpd/bgp_updgrp_adv.c:184
    8 0x7f8064cc6acd in hash_walk lib/hash.c:270
    9 0x5646b717ae0c in update_group_af_walk bgpd/bgp_updgrp.c:2046
    10 0x5646b7181275 in group_announce_route bgpd/bgp_updgrp_adv.c:1030
    11 0x5646b711a986 in bgp_process_main_one bgpd/bgp_route.c:3303
    12 0x5646b711b5bf in bgp_process_wq bgpd/bgp_route.c:3444
    13 0x7f8064da12d7 in work_queue_run lib/workqueue.c:267
    14 0x7f8064d891fb in thread_call lib/thread.c:1991
    15 0x7f8064cdffcf in frr_run lib/libfrr.c:1185
    16 0x5646b6feca67 in main bgpd/bgp_main.c:505
    17 0x7f8063f96c86 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agoMerge pull request #12942 from LabNConsulting/chopps/fixpause
Donatas Abraitis [Fri, 3 Mar 2023 15:20:14 +0000 (17:20 +0200)]
Merge pull request #12942 from LabNConsulting/chopps/fixpause

tests: fix --pause functionality

14 months agobgpd: rfapi memleak: clean CE tables at exit
G. Paul Ziemba [Thu, 2 Mar 2023 21:23:08 +0000 (13:23 -0800)]
bgpd: rfapi memleak: clean CE tables at exit

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
14 months agotests: fix --pause functionality
Christian Hopps [Fri, 3 Mar 2023 07:49:10 +0000 (02:49 -0500)]
tests: fix --pause functionality

Signed-off-by: Christian Hopps <chopps@labn.net>
14 months agoMerge pull request #12945 from opensourcerouting/fix/relax_a_bit_some_commitlint_rules
Christian Hopps [Fri, 3 Mar 2023 12:13:44 +0000 (07:13 -0500)]
Merge pull request #12945 from opensourcerouting/fix/relax_a_bit_some_commitlint_rules

tools: Do not force Sentence-case for commit messages

14 months agotools: Do not force Sentence-case for commit messages
Donatas Abraitis [Fri, 3 Mar 2023 12:10:36 +0000 (14:10 +0200)]
tools: Do not force Sentence-case for commit messages

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
14 months agobfdd: Remove useless check for ECHO packet
anlan_cs [Thu, 2 Mar 2023 09:57:17 +0000 (17:57 +0800)]
bfdd: Remove useless check for ECHO packet

The check with `ip->daddr == ip->saddr` in `bfd_recv_ipv4_fp()` is
useless, instead of it the ECHO packets should simply exit with
TTL checking failure regardless of this condition check.

Just remove the check.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
14 months agoMerge pull request #12943 from opensourcerouting/feature/add_helpurl
Christian Hopps [Fri, 3 Mar 2023 08:15:16 +0000 (03:15 -0500)]
Merge pull request #12943 from opensourcerouting/feature/add_helpurl

tools: Commit linter minor adjustments

14 months agotools: Add missing `mgmtd` prefix for commitlint
Donatas Abraitis [Fri, 3 Mar 2023 08:11:51 +0000 (10:11 +0200)]
tools: Add missing `mgmtd` prefix for commitlint

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>