For these old kernels the access to the stats from outside the driver
only works via this function call.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@903
030b6a49-0b11-0410-94ab-
b0dab22257f2
/* New-style flags. */
dev->flags = IFF_NOARP;
dev->features = NETIF_F_NO_CSUM;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ dev->get_stats = can_get_stats;
+#endif
}
/*
dev->open = can_open;
dev->stop = can_close;
dev->hard_start_xmit = can_start_xmit;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ dev->get_stats = can_get_stats;
+#endif
dev->tx_timeout = can_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
dev->open = can_open;
dev->stop = can_close;
dev->hard_start_xmit = can_start_xmit;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ dev->get_stats = can_get_stats;
+#endif
dev->tx_timeout = can_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
dev->open = slc_open;
dev->destructor = free_netdev;
dev->stop = slc_close;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+ dev->get_stats = slc_get_stats;
+#endif
dev->hard_start_xmit = slc_xmit;
dev->hard_header_len = 0;