diff options
author | brian <brian@FreeBSD.org> | 1998-08-26 17:39:37 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-08-26 17:39:37 +0000 |
commit | f0dee2c38ca3e4eeca64ea4679b582c4373dbbf4 (patch) | |
tree | 82b255b761af56aea6d84d320188e4c0db94aae0 /usr.sbin/ppp/bundle.c | |
parent | 307727cd4cb34041ce7fbca4c3323678d1dd9f0c (diff) | |
download | FreeBSD-src-f0dee2c38ca3e4eeca64ea4679b582c4373dbbf4.zip FreeBSD-src-f0dee2c38ca3e4eeca64ea4679b582c4373dbbf4.tar.gz |
Put the IP buffer queues into struct ipcp.
Forgotten by: me
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 9e7cd40..2949386 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bundle.c,v 1.32 1998/08/09 15:34:11 brian Exp $ + * $Id: bundle.c,v 1.33 1998/08/25 17:48:42 brian Exp $ */ #include <sys/param.h> @@ -231,7 +231,7 @@ bundle_ClearQueues(void *v) * dictionaries in use (causing the relevant RESET_REQ/RESET_ACK). */ - ip_DeleteQueue(); + ip_DeleteQueue(&bundle->ncp.ipcp); mp_DeleteQueue(&bundle->ncp.mp); for (dl = bundle->links; dl; dl = dl->next) physical_DeleteQueue(dl->physical); @@ -555,7 +555,7 @@ bundle_UpdateSet(struct descriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n) nlinks++; if (nlinks) { - queued = r ? bundle_FillQueues(bundle) : ip_QueueLen(); + queued = r ? bundle_FillQueues(bundle) : ip_QueueLen(&bundle->ncp.ipcp); if (bundle->autoload.running) { if (queued < bundle->cfg.autoload.max.packets) { if (queued > bundle->cfg.autoload.min.packets) @@ -710,7 +710,7 @@ bundle_DescriptorRead(struct descriptor *d, struct bundle *bundle, n = ntohs(((struct ip *)tun.data)->ip_len); } #endif - ip_Enqueue(pri, tun.data, n); + ip_Enqueue(&bundle->ncp.ipcp, pri, tun.data, n); } } } @@ -1202,7 +1202,7 @@ bundle_FillQueues(struct bundle *bundle) } } - return total + ip_QueueLen(); + return total + ip_QueueLen(&bundle->ncp.ipcp); } int @@ -1257,7 +1257,7 @@ bundle_ShowStatus(struct cmdargs const *arg) else prompt_Printf(arg->prompt, " %srunning with %d" " packets queued\n", arg->bundle->autoload.running ? - "" : "not ", ip_QueueLen()); + "" : "not ", ip_QueueLen(&arg->bundle->ncp.ipcp)); prompt_Printf(arg->prompt, " Choked Timer: %ds\n", arg->bundle->cfg.choked.timeout); |