diff options
author | amurai <amurai@FreeBSD.org> | 1995-07-08 17:46:56 +0000 |
---|---|---|
committer | amurai <amurai@FreeBSD.org> | 1995-07-08 17:46:56 +0000 |
commit | 5ee68349c4316bd077cf580e17de6a718d5298c2 (patch) | |
tree | 8c1da7cfa30dc64d7fe9c9118832aae669085969 /usr.sbin/ppp/modem.c | |
parent | f4c8f572ca1004d258d5288dc644af11101e42d7 (diff) | |
download | FreeBSD-src-5ee68349c4316bd077cf580e17de6a718d5298c2.zip FreeBSD-src-5ee68349c4316bd077cf580e17de6a718d5298c2.tar.gz |
1. Clean up log message.
2. Optimize ModemQlen.
3. Sending ProtoReject for Unknow protocol (i.e. IPX)
4. Avoid select looping by reading tun under the high system load.
5. Adding Local version String for maintenance.
6. Just more speak rather silent ignore if you type invalid key words.
Diffstat (limited to 'usr.sbin/ppp/modem.c')
-rw-r--r-- | usr.sbin/ppp/modem.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index e2de707..917c083 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.6 1995/05/30 03:50:51 rgrimes Exp $ + * $Id: modem.c,v 1.7 1995/06/30 19:53:04 dfr Exp $ * * TODO: */ @@ -645,16 +645,16 @@ struct mbuf *bp; int ModemQlen() { - struct mbuf *bp; + struct mqueue *queue; int len = 0; int i; - for (i = PRI_NORMAL; i <= PRI_URGENT; i++) { - for (bp = OutputQueues[i].top; bp; bp = bp->pnext) - len++; + for ( i = PRI_NORMAL; i <= PRI_URGENT; i ++ ) { + queue = &OutputQueues[i]; + len += queue->qlen; } - return(len); + } void |