frr/zebra
Pooja Jagadeesh Doijode 7a935bb1ad zebra: Change zserv_accept to use global zsock FD
Problem:
Zebra crashed while going down. This happened because zebra was
trying to process a new client accept request after closing ZAPI's
listener socket zsock and setting it to -1.

Fix:
Skip rescheduling zserv_accept() and accepting a new client if global
ZAPI listener socket FD, zsock is already closed and set to -1.
Also use global ZAPI listener socket FD zsock in zserv_accept() instead
of using a copy of zsock.

Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
2025-04-25 20:27:38 -07:00
..
dpdk zebra: fix dpdk compilation error 2025-01-03 11:13:02 -08:00
.gitignore zebra: Add fpm_listener 2024-03-04 11:06:35 -05:00
connected.c zebra: Fix possible null deref discovered by coverity 2024-10-17 07:42:47 -04:00
connected.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
debug.c zebra: add 'debug zebra srv6' command 2024-10-28 16:40:33 +01:00
debug.h zebra: add 'debug zebra srv6' command 2024-10-28 16:40:33 +01:00
debug_nl.c zebra: add some more netlink RTA_ strings 2024-05-09 16:56:07 -04:00
dplane_fpm_nl.c zebra: change fpm_read to batch the messages 2025-04-16 07:14:55 +00:00
fpm_listener.c Merge pull request #18641 from donaldsharp/fpm_listener_storage 2025-04-14 15:21:13 -05:00
ge_netlink.c zebra: Fetch actual SRv6 encap src addr on startup 2023-12-14 14:58:35 +01:00
ge_netlink.h zebra: Fetch actual SRv6 encap src addr on startup 2023-12-14 14:58:35 +01:00
if_ioctl.c zebra: fix loading kernel routs without netlink 2024-08-16 10:42:33 +02:00
if_netlink.c zebra: add ZEBRA_IF_DUMMY flag for dummy interfaces 2025-02-25 10:13:34 +01:00
if_netlink.h zebra: remove unused function from if_netlink.c 2024-10-06 19:25:44 -04:00
if_socket.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
if_sysctl.c zebra: fix loading kernel routs without netlink 2024-08-16 10:42:33 +02:00
interface.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
interface.h zebra: add rtadv information output in vtysh json 2025-03-17 11:19:58 +01:00
ioctl.c zebra: Remove some unused functions on linux build 2024-11-25 13:12:10 -05:00
ioctl.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ipforward.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
ipforward_proc.c zebra: don't try to read past EOF 2024-10-16 13:30:25 +02:00
ipforward_sysctl.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
irdp.h *: Rename struct thread to struct event 2023-03-24 08:32:17 -04:00
irdp_interface.c zebra: convert interface configuration output to NB 2024-01-28 23:28:40 +02:00
irdp_main.c *: convert struct interface->connected to DLIST 2023-11-22 23:00:30 +01:00
irdp_packet.c zebra: Fix shadow warning in irdp_packet.c 2025-04-09 12:01:30 -04:00
kernel_netlink.c bgpd: Fix wrong pthread event cancelling 2024-10-24 21:01:26 -04:00
kernel_netlink.h zebra: Remove nl_addraw_l 2024-09-19 08:28:48 -04:00
kernel_socket.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
kernel_socket.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
label_manager.c zebra: Cleanup linked list on shutdown in label manager 2023-12-11 15:26:20 -05:00
label_manager.h zebra: Cleanup linked list on shutdown in label manager 2023-12-11 15:26:20 -05:00
main.c zebra: Save event pointer for rib sweeping 2025-04-18 17:44:39 -04:00
Makefile
netconf_netlink.c *: zebra.h should not have fcntl.h 2024-01-09 12:50:40 -05:00
netconf_netlink.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
redistribute.c zebra: Convert the zrouter.client_list to a typesafe list 2025-03-19 13:27:36 -04:00
redistribute.h zebra: Add ability to import alternate tables into the MRIB 2024-10-29 20:17:59 +00:00
rib.h Merge pull request #18497 from krishna-samy/show-metaq-counters 2025-04-16 09:16:40 -04:00
router-id.c zebra: Convert the zrouter.client_list to a typesafe list 2025-03-19 13:27:36 -04:00
router-id.h zebra: convert vrf configuration output to NB 2024-01-28 23:28:40 +02:00
rt.h *: Introduce Local Host Routes to FRR 2023-11-01 17:13:06 -04:00
rt_netlink.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
rt_netlink.h zebra: refactor netlink route message parsing 2024-12-05 09:23:53 -05:00
rt_socket.c zebra: When installing a mroute, allow it to flow 2024-10-28 15:02:39 -04:00
rtadv.c zebra: implement RFC8781 (NAT64 prefix in RAs) 2025-04-15 14:20:05 +02:00
rtadv.h zebra: implement RFC8781 (NAT64 prefix in RAs) 2025-04-15 14:20:05 +02:00
rtread_netlink.c Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
rtread_sysctl.c lib: remove net/route.h it is not used 2024-01-09 12:50:40 -05:00
rule_netlink.c *: Remove netlink headers from lib/zebra.h 2023-11-07 06:46:19 -05:00
rule_netlink.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
rule_socket.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
sample_plugin.c *: Convert struct event_master to struct event_loop 2023-03-24 08:32:17 -04:00
subdir.am zebra: Add show fpm status [json] command 2024-03-04 11:06:35 -05:00
table_manager.c lib, mgmtd, zebra: cleanup of zebra conversion to mgmtd 2024-01-28 23:46:38 +02:00
table_manager.h zebra: Don't display the vrf if not using namespace based vrfs 2024-11-04 12:14:47 -05:00
tc_netlink.c zebra: remove unsued function from tc_netlink.c 2024-10-06 19:30:56 -04:00
tc_netlink.h zebra: remove unused function from tc_netlink.c 2024-10-06 19:08:44 -04:00
tc_socket.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
testrib.conf
zapi_msg.c zebra: clean pbr_iptable interface_name_list free 2025-04-11 15:52:42 +02:00
zapi_msg.h lib,zebra: VRF table-direct support 2025-01-23 14:37:09 -03:00
zebra_affinitymap.c zebra: rework affinity-map update hook 2024-01-19 03:47:11 +02:00
zebra_affinitymap.h lib,zebra: add affinity-map configuration hooks 2023-02-10 13:52:01 +01:00
zebra_cli.c zebra: implement RFC8781 (NAT64 prefix in RAs) 2025-04-15 14:20:05 +02:00
zebra_cli.h zebra: convert to mgmtd 2024-01-28 23:28:40 +02:00
zebra_dplane.c zebra: change fpm_read to batch the messages 2025-04-16 07:14:55 +00:00
zebra_dplane.h zebra: change fpm_read to batch the messages 2025-04-16 07:14:55 +00:00
zebra_errors.c zebra: Add functions to alloc/release SRv6 SIDs 2024-06-13 14:54:16 +02:00
zebra_errors.h zebra: Add functions to alloc/release SRv6 SIDs 2024-06-13 14:54:16 +02:00
zebra_evpn.c zebra: Missed debug guard in zebra_evpn.c 2024-11-14 16:03:14 -05:00
zebra_evpn.h zebra: use new per-NS ifp iterators in vxlan code 2024-10-29 13:49:43 -04:00
zebra_evpn_mac.c zebra:check DAD freeze action before notifying bgp 2024-12-30 14:39:27 -08:00
zebra_evpn_mac.h zebra: Add refcounts to evpn nexthop prefixes 2025-04-01 20:32:50 +02:00
zebra_evpn_mh.c zebra: Add refcounts to evpn nexthop prefixes 2025-04-01 20:32:50 +02:00
zebra_evpn_mh.h zebra: bridge flap handle vlan membership update 2024-05-03 10:52:33 -07:00
zebra_evpn_neigh.c *: Remove netlink headers from lib/zebra.h 2023-11-07 06:46:19 -05:00
zebra_evpn_neigh.h *: Convert THREAD_XXX macros to EVENT_XXX macros 2023-03-24 08:32:17 -04:00
zebra_evpn_vxlan.h Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
zebra_fpm.c *: Remove netlink headers from lib/zebra.h 2023-11-07 06:46:19 -05:00
zebra_fpm_dt.c *: Remove netlink headers from lib/zebra.h 2023-11-07 06:46:19 -05:00
zebra_fpm_netlink.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
zebra_fpm_private.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_fpm_protobuf.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_gr.c zebra: Rework the stale client list to a typesafe list 2025-03-19 13:43:00 -04:00
zebra_l2.c zebra: bridge flap handle vlan membership update 2024-05-03 10:52:33 -07:00
zebra_l2.h zebra: vlan to dplane Offload from main 2024-09-26 20:17:35 -07:00
zebra_l2_bridge_if.c *: Add a hash_clean_and_free() function 2023-03-21 08:54:21 -04:00
zebra_l2_bridge_if.h zebra: multiple vlan aware bridge data structure and related changes 2023-02-13 18:12:04 -05:00
zebra_mlag.c zebra: Convert the zrouter.client_list to a typesafe list 2025-03-19 13:27:36 -04:00
zebra_mlag.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_mlag_private.c *: Convert event.h to frrevent.h 2023-03-24 08:32:17 -04:00
zebra_mlag_vty.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_mlag_vty.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_mpls.c zebra: Reduce memory usage of streams for encoding packets 2024-12-09 12:31:29 -05:00
zebra_mpls.h zebra: return void zebra_mpls_lsp_install 2024-06-07 12:33:48 +02:00
zebra_mpls_netlink.c *: remove sys/stat.h from zebra.h 2024-01-09 12:39:23 -05:00
zebra_mpls_null.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_mpls_openbsd.c zebra: changes for code maintainability 2024-03-21 14:56:24 +05:30
zebra_mpls_vty.c zebra: fix mpls command 2024-05-16 23:30:41 +08:00
zebra_mroute.c zebra: Reduce memory usage of streams for encoding packets 2024-12-09 12:31:29 -05:00
zebra_mroute.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_nb.c zebra: implement RFC8781 (NAT64 prefix in RAs) 2025-04-15 14:20:05 +02:00
zebra_nb.h zebra: implement RFC8781 (NAT64 prefix in RAs) 2025-04-15 14:20:05 +02:00
zebra_nb_config.c zebra: implement RFC8781 (NAT64 prefix in RAs) 2025-04-15 14:20:05 +02:00
zebra_nb_rpcs.c zebra: clear evpn dup-addr return error-msg when there is no vni 2024-06-20 15:05:37 -07:00
zebra_nb_state.c zebra: Add mpls-forwarding to yang state model 2025-03-07 22:24:42 -05:00
zebra_neigh.c zebra: Fix neigh delete causing heap-use-after-free error 2025-03-11 13:41:40 -07:00
zebra_neigh.h zebra: Remove static ARP entries on interface down events 2023-11-06 15:00:59 +02:00
zebra_netns_id.c zebra: don't misappropriate errno 2024-10-16 13:30:25 +02:00
zebra_netns_id.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_netns_notify.c zebra: check dirfd() result 2024-10-16 13:30:25 +02:00
zebra_netns_notify.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_nhg.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
zebra_nhg.h zebra: fix table heap-after-free crash 2025-03-10 09:54:18 +01:00
zebra_nhg_private.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_ns.c Merge pull request #17297 from mjstapp/mjs_ifp_table 2024-11-12 15:12:07 -05:00
zebra_ns.h zebra: remove if_table from the zebra NS 2024-10-29 13:49:43 -04:00
zebra_opaque.c zebra: clean up coverity warning in opaque api 2023-06-26 13:19:23 -04:00
zebra_opaque.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_pbr.c zebra: clean pbr_iptable interface_name_list free 2025-04-11 15:52:42 +02:00
zebra_pbr.h zebra: clean pbr_iptable interface_name_list free 2025-04-11 15:52:42 +02:00
zebra_ptm.c zebra: Convert the zrouter.client_list to a typesafe list 2025-03-19 13:27:36 -04:00
zebra_ptm.h zebra: convert to mgmtd 2024-01-28 23:28:40 +02:00
zebra_ptm_redistribute.c zebra: Convert the zrouter.client_list to a typesafe list 2025-03-19 13:27:36 -04:00
zebra_ptm_redistribute.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_pw.c zebra: Fix crash in pw code 2024-10-09 07:17:29 -04:00
zebra_pw.h zebra: Move pw status settting until after we get results 2024-10-07 20:36:45 -04:00
zebra_rib.c Merge pull request #18158 from chdxD1/evpn-no-withdraw-for-update 2025-04-22 10:54:57 -04:00
zebra_rnh.c zebra: zebra crash for zapi stream 2025-03-20 16:13:44 +00:00
zebra_rnh.h zebra: include route source set by route-map in show output 2024-05-14 10:28:17 -04:00
zebra_routemap.c zebra: guard against junk in nexthop->rmap_src 2025-01-29 16:48:37 +01:00
zebra_routemap.h zebra: Add ability to import alternate tables into the MRIB 2024-10-29 20:17:59 +00:00
zebra_routemap_nb.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_routemap_nb.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_routemap_nb_config.c *: Add missing SPDX-License-Identifier for some .c/.h files 2024-03-21 16:46:58 +02:00
zebra_router.c zebra: Bring up 514 BGP neighbor sessions 2025-03-05 06:15:56 +00:00
zebra_router.h zebra: Rework the stale client list to a typesafe list 2025-03-19 13:43:00 -04:00
zebra_script.c zebra: vlan to dplane Offload from main 2024-09-26 20:17:35 -07:00
zebra_script.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_snmp.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
zebra_srte.c *: Fix up improper handling of nexthops for nexthop tracking 2024-10-15 11:57:23 -04:00
zebra_srte.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_srv6.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
zebra_srv6.h zebra: Alloc/Release SIDs to daemons upon request 2024-06-13 14:54:16 +02:00
zebra_srv6_vty.c zebra: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
zebra_srv6_vty.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
zebra_tc.c zebra: Set Free Functions for Traffic Control Hash Tables 2023-11-29 16:33:54 +04:00
zebra_tc.h zebra: Set Free Functions for Traffic Control Hash Tables 2023-11-29 16:33:54 +04:00
zebra_trace.c *: Add missing SPDX-License-Identifier for some .c/.h files 2024-03-21 16:46:58 +02:00
zebra_trace.h zebra: remove unused function from if_netlink.c 2024-10-06 19:25:44 -04:00
zebra_vrf.c zebra: Convert the zrouter.client_list to a typesafe list 2025-03-19 13:27:36 -04:00
zebra_vrf.h zebra: remove vrf route entries at vrf disabling 2025-03-10 09:54:18 +01:00
zebra_vty.c Merge pull request #18497 from krishna-samy/show-metaq-counters 2025-04-16 09:16:40 -04:00
zebra_vxlan.c zebra: Add refcounts to evpn nexthop prefixes 2025-04-01 20:32:50 +02:00
zebra_vxlan.h zebra: vlan to dplane Offload from main 2024-09-26 20:17:35 -07:00
zebra_vxlan_if.c zebra: Don't use MTYPE_TMP for l2 vni data 2025-03-07 11:50:41 -05:00
zebra_vxlan_if.h zebra: Fix for mcast-group update and delete per vni for svd 2023-02-13 18:12:05 -05:00
zebra_vxlan_private.h Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
zserv.c zebra: Change zserv_accept to use global zsock FD 2025-04-25 20:27:38 -07:00
zserv.h zebra: Rework the stale client list to a typesafe list 2025-03-19 13:43:00 -04:00