]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco_linux: clean up PEER_GET trigger and parser
authorAntonio Quartulli <antonio@mandelbit.com>
Sun, 27 Jul 2025 10:22:40 +0000 (12:22 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 27 Jul 2025 10:40:42 +0000 (12:40 +0200)
commitd1f2afc26bc8cc1837c2c12981e7eb6afdd4fcf6
treeb7b1baf216c6c48dea52dccc9fb73b965db6a37a
parent3594f5901db17d9b57d8809c729ef24d4bbfddf5
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>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250727102245.24931-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32361.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco.h
src/openvpn/dco_freebsd.c
src/openvpn/dco_freebsd.h
src/openvpn/dco_linux.c
src/openvpn/dco_win.c
src/openvpn/multi.c