From 8b4d9ac7784e132df4b5dadd98b5116efe6712ea Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Sun, 18 Oct 2026 00:33:50 +0200 Subject: [PATCH] nsysnet/misc: Add `socketclose_all` and `setsocklibopt` --- include/nsysnet/misc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/nsysnet/misc.h b/include/nsysnet/misc.h index df2d8694f..26713e542 100644 --- a/include/nsysnet/misc.h +++ b/include/nsysnet/misc.h @@ -10,9 +10,23 @@ extern "C" { #endif +typedef enum +{ + //! Prevents closing nsysnet sockets during socketclose_all + //! Note: No-op if security level is prod + SOLIB_OPT_AVOID_CLOSE_ALL = 0x3000, +} SOLIBOpt; +WUT_CHECK_SIZE(SOLIBOpt, 4); + int set_multicast_state(BOOL multicastEnable); +int +socketclose_all(void); + +int +setsocklibopt(SOLIBOpt opt, uint32_t value); + #ifdef __cplusplus } #endif