diff options
| author | Brian Somers <brian@FreeBSD.org> | 1998-08-25 17:48:43 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1998-08-25 17:48:43 +0000 |
| commit | 6f8e9f0a8a6fa4e9dd0ad9ada1caecef634c90a2 (patch) | |
| tree | 9eaa58f8a3a8c2383cde414b29977869e6b14377 /usr.sbin/ppp/ip.c | |
| parent | 12e14047a483a3c3b8680ecee6a8ef4b0f936cc3 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/ip.c')
| -rw-r--r-- | usr.sbin/ppp/ip.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 9d80c24b6736..e5f1d53f64c6 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.49 1998/07/11 19:05:24 brian Exp $ + * $Id: ip.c,v 1.50 1998/08/07 18:42:48 brian Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -505,6 +505,16 @@ ip_Enqueue(int pri, char *ptr, int count) mbuf_Enqueue(&IpOutputQueues[pri], bp); } +void +ip_DeleteQueue() +{ + struct mqueue *queue; + + for (queue = IpOutputQueues; queue < IpOutputQueues + PRI_MAX; queue++) + while (queue->top) + mbuf_Free(mbuf_Dequeue(queue)); +} + int ip_QueueLen() { |
