slip.c (a402eae64d0ad12b1c4a411f250d6c161e67f623) slip.c (bc1f44709cf27fb2a5766cadafe7e2ad5e9cb221)
1/*
2 * slip.c This module implements the SLIP protocol for kernel-based
3 * devices like TTY. It interfaces between a raw TTY, and the
4 * kernel's INET protocol layers.
5 *
6 * Version: @(#)slip.c 0.8.3 12/24/94
7 *
8 * Authors: Laurence Culhane, <loz@holmes.demon.co.uk>

--- 552 unchanged lines hidden (view full) ---

561{
562 struct slip *sl = netdev_priv(dev);
563
564 return sl_realloc_bufs(sl, new_mtu);
565}
566
567/* Netdevice get statistics request */
568
1/*
2 * slip.c This module implements the SLIP protocol for kernel-based
3 * devices like TTY. It interfaces between a raw TTY, and the
4 * kernel's INET protocol layers.
5 *
6 * Version: @(#)slip.c 0.8.3 12/24/94
7 *
8 * Authors: Laurence Culhane, <loz@holmes.demon.co.uk>

--- 552 unchanged lines hidden (view full) ---

561{
562 struct slip *sl = netdev_priv(dev);
563
564 return sl_realloc_bufs(sl, new_mtu);
565}
566
567/* Netdevice get statistics request */
568
569static struct rtnl_link_stats64 *
569static void
570sl_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats)
571{
572 struct net_device_stats *devstats = &dev->stats;
573#ifdef SL_INCLUDE_CSLIP
574 struct slip *sl = netdev_priv(dev);
575 struct slcompress *comp = sl->slcomp;
576#endif
577 stats->rx_packets = devstats->rx_packets;

--- 14 unchanged lines hidden (view full) ---

592
593 /* Are we really still needs this? */
594 stats->rx_fifo_errors += comp->sls_i_compressed;
595 stats->rx_dropped += comp->sls_i_tossed;
596 stats->tx_fifo_errors += comp->sls_o_compressed;
597 stats->collisions += comp->sls_o_misses;
598 }
599#endif
570sl_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats)
571{
572 struct net_device_stats *devstats = &dev->stats;
573#ifdef SL_INCLUDE_CSLIP
574 struct slip *sl = netdev_priv(dev);
575 struct slcompress *comp = sl->slcomp;
576#endif
577 stats->rx_packets = devstats->rx_packets;

--- 14 unchanged lines hidden (view full) ---

592
593 /* Are we really still needs this? */
594 stats->rx_fifo_errors += comp->sls_i_compressed;
595 stats->rx_dropped += comp->sls_i_tossed;
596 stats->tx_fifo_errors += comp->sls_o_compressed;
597 stats->collisions += comp->sls_o_misses;
598 }
599#endif
600 return stats;
601}
602
603/* Netdevice register callback */
604
605static int sl_init(struct net_device *dev)
606{
607 struct slip *sl = netdev_priv(dev);
608

--- 851 unchanged lines hidden ---
600}
601
602/* Netdevice register callback */
603
604static int sl_init(struct net_device *dev)
605{
606 struct slip *sl = netdev_priv(dev);
607

--- 851 unchanged lines hidden ---