diff options
| author | 2002-06-11 04:27:40 +0000 | |
|---|---|---|
| committer | 2002-06-11 04:27:40 +0000 | |
| commit | a1038145d0b693641ef59b23f98b6a9bed88f6eb (patch) | |
| tree | dd4a8f87aebf3b3efa10b3fe503301bbbbb97e18 /sys/net/if_ppp.c | |
| parent | splassert(IPL_NET) where comment says that we should. (diff) | |
| download | wireguard-openbsd-a1038145d0b693641ef59b23f98b6a9bed88f6eb.tar.xz wireguard-openbsd-a1038145d0b693641ef59b23f98b6a9bed88f6eb.zip | |
sprinkle splasserts where function comments tell us to.
Diffstat (limited to 'sys/net/if_ppp.c')
| -rw-r--r-- | sys/net/if_ppp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index e9f513425ff..6e5ff27f1e3 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ppp.c,v 1.27 2002/03/14 01:27:09 millert Exp $ */ +/* $OpenBSD: if_ppp.c,v 1.28 2002/06/11 04:27:40 art Exp $ */ /* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */ /* @@ -271,6 +271,8 @@ pppdealloc(sc) { struct mbuf *m; + splassert(IPL_SOFTNET); + if_down(&sc->sc_if); sc->sc_if.if_flags &= ~(IFF_UP|IFF_RUNNING); sc->sc_devp = NULL; @@ -821,6 +823,8 @@ ppp_requeue(sc) enum NPmode mode; int error; + splassert(IPL_SOFTNET); + for (mpp = &sc->sc_npqueue; (m = *mpp) != NULL; ) { switch (PPP_PROTOCOL(mtod(m, u_char *))) { case PPP_IP: @@ -1031,8 +1035,10 @@ pppintr() int i, s, s2; struct mbuf *m; + splassert(IPL_SOFTNET); + sc = ppp_softc; - s = splsoftnet(); + s = splsoftnet(); /* XXX - what's the point of this? see comment above */ for (i = 0; i < NPPP; ++i, ++sc) { if (!(sc->sc_flags & SC_TBUSY) && (IFQ_IS_EMPTY(&sc->sc_if.if_snd) == 0 || sc->sc_fastq.ifq_head)) { |
