X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Ftcp_keep_alive.cpp;fp=src%2Fbin%2Flttng-relayd%2Ftcp_keep_alive.cpp;h=d632b77426966c7bbc80c7659e93b88cf3660455;hp=885b2a6a5617391e4a430674e37f4c4459cfca34;hb=f149493493fbd8a3efa4748832c03278c96c38ca;hpb=2d7da3031c65c4569ff2428a7c2cad30007f3b50 diff --git a/src/bin/lttng-relayd/tcp_keep_alive.cpp b/src/bin/lttng-relayd/tcp_keep_alive.cpp index 885b2a6a5..d632b7742 100644 --- a/src/bin/lttng-relayd/tcp_keep_alive.cpp +++ b/src/bin/lttng-relayd/tcp_keep_alive.cpp @@ -61,6 +61,7 @@ #endif /* ! defined (__linux__) && ! defined (__sun__) */ +namespace { struct tcp_keep_alive_support { /* TCP keep-alive is supported by this platform. */ bool supported; @@ -105,17 +106,18 @@ struct tcp_keep_alive_config { int abort_threshold; }; -static struct tcp_keep_alive_config the_config = {.enabled = false, +struct tcp_keep_alive_config the_config = {.enabled = false, .idle_time = -1, .probe_interval = -1, .max_probe_count = -1, .abort_threshold = -1}; -static struct tcp_keep_alive_support the_support = {.supported = false, +struct tcp_keep_alive_support the_support = {.supported = false, .idle_time_supported = false, .probe_interval_supported = false, .max_probe_count_supported = false, .abort_threshold_supported = false}; +} /* namespace */ /* * Common parser for string to positive int conversion where the value must be