diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-06 02:54:32 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-06 02:54:32 +0000 |
commit | 34dd7f6d978f8e74e3d6e617435aef7338e69814 (patch) | |
tree | 66eadda244a2fa06380b120e44af5b11cd60bd58 /sys | |
parent | ae0b35589d05951514ff0592a8bdda6ba9131ab7 (diff) |
and make sppp_qflush a wrapper around IF_PURGE instead of handrolling
the same, ok'd with IFQ_PURGE with happens to break on altq kernels by
claudio, ryan and bluhm
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_spppsubr.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index db5ba1e2929..3c12312a1ca 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.92 2011/07/06 02:49:36 henning Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.93 2011/07/06 02:54:31 henning Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. * Keepalive protocol implemented in both Cisco and PPP modes. @@ -4534,16 +4534,7 @@ sppp_auth_send(const struct cp *cp, struct sppp *sp, HIDE void sppp_qflush(struct ifqueue *ifq) { - struct mbuf *m, *n; - - n = ifq->ifq_head; - while ((m = n)) { - n = m->m_act; - m_freem (m); - } - ifq->ifq_head = 0; - ifq->ifq_tail = 0; - ifq->ifq_len = 0; + IF_PURGE(ifq); } /* |