Stared at code, discussed what this "netlink uint" thing is (it's a magic
data type which is sent in netlink data structures as 32 or 64 bit,
depending on need - so, when going over 4G, you get 64 bit counters,
and when not, saving on bandwidth).

Tested, and lo and behold, counters do appear, with values that look
reasonable

    tun-udp-p2mp[58643]: dco_update_peer_stat / dco_read_bytes: 1013248
    tun-udp-p2mp[58643]: dco_update_peer_stat / dco_write_bytes: 1059016
    tun-udp-p2mp[58643]: dco_update_peer_stat / tun_read_bytes: 867928
    tun-udp-p2mp[58643]: dco_update_peer_stat / tun_write_bytes: 911344

Your patch has been applied to the master branch.

commit 6c33e3761ecb476d047bc14e7948ffddba800915
Author: Antonio Quartulli
Date:   Sat May 17 10:32:23 2025 +0200

     dco_linux: fix peer stats parsing with new ovpn kernel module

     Signed-off-by: Antonio Quartulli <anto...@mandelbit.com>
     Acked-by: Gert Doering <g...@greenie.muc.de>
     Message-Id: <20250517083231.27977-1-g...@greenie.muc.de>
     URL: 
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31666.html
     Signed-off-by: Gert Doering <g...@greenie.muc.de>

--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to