summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-07-01 21:02:24 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1998-07-01 21:02:24 +0000
commit6cb7bd865482408d42b831ca725fbf1980a6aa2f (patch)
treeb7dfa49bee8f42b6128c53ac1c8d5df52169d352 /sys
parent13b45a287ce994335a66ee2b0e9c4a4f1118ea6a (diff)
Add NPMODE_KEEPLAST conditions; not supported yet (act like NPMODE_QUEUE).
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_ppp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 1ed121e0302..6f8c8dbab8b 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.12 1998/05/08 05:02:09 millert Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.13 1998/07/01 21:02:23 angelos Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -467,7 +467,8 @@ pppioctl(sc, cmd, data, flag, p)
if (npi->mode != sc->sc_npmode[npx]) {
s = splsoftnet();
sc->sc_npmode[npx] = npi->mode;
- if (npi->mode != NPMODE_QUEUE) {
+ if ((npi->mode != NPMODE_QUEUE) &&
+ (npi->mode != NPMODE_KEEPLAST)) {
ppp_requeue(sc);
(*sc->sc_start)(sc);
}
@@ -757,7 +758,8 @@ pppoutput(ifp, m0, dst, rtp)
* Put the packet on the appropriate queue.
*/
s = splsoftnet();
- if (mode == NPMODE_QUEUE) {
+ if ((mode == NPMODE_QUEUE) ||
+ (mode == NPMODE_KEEPLAST)) /* XXX Fix eventually */ {
/* XXX we should limit the number of packets on this queue */
*sc->sc_npqtail = m0;
m0->m_nextpkt = NULL;
@@ -831,6 +833,7 @@ ppp_requeue(sc)
m_freem(m);
break;
+ case NPMODE_KEEPLAST: /* XXX Fix eventually */
case NPMODE_QUEUE:
mpp = &m->m_nextpkt;
break;