--- zzzz-none-000/linux-3.10.107/include/linux/if_tun.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/if_tun.h 2021-02-04 17:41:59.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