fix: fix issue 78 (#80)

* fix: add patch to fix stats
This commit is contained in:
Slava-Shchipunov
2025-12-24 11:24:12 +07:00
committed by GitHub
parent 3498354348
commit 9591ffdebe
2 changed files with 34 additions and 23 deletions

View File

@@ -0,0 +1,12 @@
--- a/src/device.c
+++ b/src/device.c
@@ -246,9 +246,7 @@ static const struct net_device_ops netd
.ndo_open = wg_open,
.ndo_stop = wg_stop,
.ndo_start_xmit = wg_xmit,
-#ifndef COMPAT_CANNOT_USE_PCPU_STAT_TYPE
.ndo_get_stats64 = dev_get_tstats64
-#endif
};
static void wg_destruct(struct net_device *dev)