summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-11-18 14:52:08 +0000
committerbrian <brian@FreeBSD.org>1997-11-18 14:52:08 +0000
commit7a358d8b024e6ebd90807720438c539bcac14855 (patch)
treebaa2a2ef6ea91adf2c59b11bbffbd706f85ced30 /usr.sbin/ppp/ip.c
parent907dcc5c043baddb164e2c76f04097ea096b9c3a (diff)
downloadFreeBSD-src-7a358d8b024e6ebd90807720438c539bcac14855.zip
FreeBSD-src-7a358d8b024e6ebd90807720438c539bcac14855.tar.gz
Add throughput logging (disabled by default).
Use "enable throughput" to see modem & IPCP throughput. Removed an extraneous prompt()
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index 26cee11..ed27692 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ip.c,v 1.29 1997/11/12 21:04:21 brian Exp $
+ * $Id: ip.c,v 1.30 1997/11/16 22:15:03 brian Exp $
*
* TODO:
* o Return ICMP message for filterd packet
@@ -251,7 +251,7 @@ IcmpError(struct ip * pip, int code)
memcpy(MBUF_CTOP(bp), ptr, cnt);
SendPppFrame(bp);
RestartIdleTimer();
- ipOutOctets += cnt;
+ IpcpAddOutOctets(cnt);
}
#endif
}
@@ -405,7 +405,7 @@ IpInput(struct mbuf * bp)
pfree(bp);
return;
}
- ipInOctets += nb;
+ IpcpAddInOctets(nb);
nb = ntohs(((struct ip *) tun.data)->ip_len);
nb += sizeof(tun)-sizeof(tun.data);
@@ -450,7 +450,7 @@ IpInput(struct mbuf * bp)
pfree(bp);
return;
}
- ipInOctets += nb;
+ IpcpAddInOctets(nb);
nb += sizeof(tun)-sizeof(tun.data);
nw = write(tun_out, &tun, nb);
if (nw != nb)
@@ -509,7 +509,7 @@ IpStartOutput()
cnt = plength(bp);
SendPppFrame(bp);
RestartIdleTimer();
- ipOutOctets += cnt;
+ IpcpAddOutOctets(cnt);
break;
}
}
OpenPOWER on IntegriCloud