summaryrefslogtreecommitdiff
path: root/accel-pppd/cli
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-04-29 14:40:40 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-05-04 03:09:49 +0300
commitbfca38f5d71dd552e6379152c5a4ba3b0b42f7a8 (patch)
tree3ecac437c9c2018574f747dc9381303c711742f2 /accel-pppd/cli
parent770550921ae2d084168cb0b9d8d66f783cbdb69d (diff)
downloadaccel-ppp-bfca38f5d71dd552e6379152c5a4ba3b0b42f7a8.tar.gz
accel-ppp-bfca38f5d71dd552e6379152c5a4ba3b0b42f7a8.zip
sstp: encapsulate statistics counters
Group the SSTP starting and active statistics in struct sstp_stat_t and keep the storage under the SSTP server object instead of exposing writable stat_* globals. This keeps ownership inside the SSTP control code while preserving the existing CLI and ACCEL-PPP-MIB counter semantics. Route counter updates through sstp_stat_*() helpers. Connection accept, transition to PPP setup, and disconnect paths no longer open-code individual counter increments/decrements; the update policy now lives beside the SSTP-owned storage and uses relaxed atomic operations for the simple state counters. Make the CLI show-stat path render from a local snapshot and convert the SSTP SNMP starting/active scalars from watched raw pointers to scalar handlers. SNMP now reads through sstp_stat_starting() and sstp_stat_active(), removing the old sstp_get_stat() pointer escape hatch. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'accel-pppd/cli')
0 files changed, 0 insertions, 0 deletions