]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco_linux: clean up PEER_GET trigger and parser dco-cleanup
authorAntonio Quartulli <antonio@mandelbit.com>
Fri, 25 Jul 2025 23:24:23 +0000 (01:24 +0200)
committerAntonio Quartulli <antonio@mandelbit.com>
Fri, 25 Jul 2025 23:30:44 +0000 (01:30 +0200)
commit779c87b0266adb815d27d3e4dfcc35433ede0fcb
treee80cd6c51cc6e73ed4ab9a0402a7256e638d0f8b
parent7d5ec053f0f30c6cd27b60ed76859a09f6dbf5e4
dco_linux: clean up PEER_GET trigger and parser

This patch is intended to reduce code duplication and
cleanup the DCO code around the PEER_GET command.

Specifically it:
* unified PEER_GET reply parser for `multi` and
  `non-multi` case
* unified PEER_GET request trigger for `multi` and
  `non-multi` case
* dropped struct multi_context from the argument list of
  dco_get_peer_stats_multi()

Github: closes OpenVPN/openvpn#800
Change-Id: Icbc70225d53ca678b8c22ed437b424c16e199d66
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
src/openvpn/dco.h
src/openvpn/dco_freebsd.c
src/openvpn/dco_linux.c
src/openvpn/dco_win.c
src/openvpn/multi.c