Closes #4242
Signed-off-by: Vladimir Ulrich <admin@evl.su>
#
-# Copyright (C) 2006-2015 OpenWrt.org
+# Copyright (C) 2006-2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=siit
PKG_VERSION:=1.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=GPLv2+
include $(INCLUDE_DIR)/package.mk
siit_stats(dev)->rx_bytes += skb->len;
siit_stats(dev)->rx_packets++;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
+ netif_trans_update(dev);
+#else
dev->trans_start = jiffies;
+#endif
/* Upper layer (IP) protocol forms sk_buff for outgoing packet
* and sets IP header + Ether header too. IP layer sets outgoing