]> git.neil.brown.name Git - history.git/commitdiff
ISDN: Add PPP statistics in bytes
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Thu, 6 Jun 2002 14:35:21 +0000 (09:35 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Thu, 6 Jun 2002 14:35:21 +0000 (09:35 -0500)
(by Karsten Keil)

drivers/isdn/i4l/isdn_ppp.c

index 622b69cadcd77da6cfc498e241bed8352037206d..5f4ce654b434ee5a679620dfd1e80ff558a96d4c 100644 (file)
@@ -1844,8 +1844,10 @@ isdn_ppp_dev_ioctl_stats(int slot, struct ifreq *ifr, struct net_device *dev)
        memset(&t, 0, sizeof(struct ppp_stats));
        if (dev->flags & IFF_UP) {
                t.p.ppp_ipackets = lp->stats.rx_packets;
+               t.p.ppp_ibytes = lp->stats.rx_bytes;
                t.p.ppp_ierrors = lp->stats.rx_errors;
                t.p.ppp_opackets = lp->stats.tx_packets;
+               t.p.ppp_obytes = lp->stats.tx_bytes;
                t.p.ppp_oerrors = lp->stats.tx_errors;
 #ifdef CONFIG_ISDN_PPP_VJ
                if (slot >= 0 && ippp_table[slot]->slcomp) {