--- zzzz-none-000/linux-5.4.213/include/linux/if_tun.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/linux/if_tun.h 2024-08-14 09:02:08.000000000 +0000 @@ -26,6 +26,12 @@ #if defined(CONFIG_TUN) || defined(CONFIG_TUN_MODULE) struct socket *tun_get_socket(struct file *); +#ifdef __KERNEL__ +typedef void (*tun_get_offload_stats_t)(struct net_device *dev, + struct rtnl_link_stats64 *stats); +void tun_register_offload_stats_callback(tun_get_offload_stats_t stats_cb); +void tun_unregister_offload_stats_callback(void); +#endif struct ptr_ring *tun_get_tx_ring(struct file *file); bool tun_is_xdp_frame(void *ptr); void *tun_xdp_to_ptr(void *ptr);