--- zzzz-none-000/linux-4.4.271/include/linux/if_tun.h 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/include/linux/if_tun.h 2023-04-19 10:22:30.000000000 +0000 @@ -19,6 +19,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 #else #include #include