diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1997-05-19 22:03:09 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1997-05-19 22:03:09 +0000 |
| commit | 00081cc989b6387a72098fd59ed99f7e63904652 (patch) | |
| tree | be3cfd67d4632c0310148f6c9bb6143bb9bd5b29 /sys/dev | |
| parent | 5cc6677fdc816f90a086873cbfc39897df409c07 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ar/if_ar.c | 9 | ||||
| -rw-r--r-- | sys/dev/ar/if_ar_isa.c | 9 | ||||
| -rw-r--r-- | sys/dev/sr/if_sr.c | 20 | ||||
| -rw-r--r-- | sys/dev/sr/if_sr_isa.c | 20 |
4 files changed, 52 insertions, 6 deletions
diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index a0fad0f5c3e83..8e5c384ea7128 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: if_ar.c,v 1.14 1997/02/22 09:36:15 peter Exp $ */ /* @@ -349,6 +349,13 @@ arattach(struct isa_device *id) sppp_attach((struct ifnet *)&sc->ifsppp); if_attach(ifp); + /* + * Shortcut the sppp tls/tlf actions to up/down events + * since our lower layer is always ready. + */ + sc->ifsppp.pp_tls = sc->ifsppp.pp_up; + sc->ifsppp.pp_tlf = sc->ifsppp.pp_down; + #if NBPFILTER > 0 bpfattach(ifp, DLT_PPP, PPP_HEADER_LEN); #endif diff --git a/sys/dev/ar/if_ar_isa.c b/sys/dev/ar/if_ar_isa.c index a0fad0f5c3e83..8e5c384ea7128 100644 --- a/sys/dev/ar/if_ar_isa.c +++ b/sys/dev/ar/if_ar_isa.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: if_ar.c,v 1.14 1997/02/22 09:36:15 peter Exp $ */ /* @@ -349,6 +349,13 @@ arattach(struct isa_device *id) sppp_attach((struct ifnet *)&sc->ifsppp); if_attach(ifp); + /* + * Shortcut the sppp tls/tlf actions to up/down events + * since our lower layer is always ready. + */ + sc->ifsppp.pp_tls = sc->ifsppp.pp_up; + sc->ifsppp.pp_tlf = sc->ifsppp.pp_down; + #if NBPFILTER > 0 bpfattach(ifp, DLT_PPP, PPP_HEADER_LEN); #endif diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c index 21c0f48cae2e8..a9abd8f3c909e 100644 --- a/sys/dev/sr/if_sr.c +++ b/sys/dev/sr/if_sr.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: if_sr.c,v 1.6 1997/02/22 09:36:35 peter Exp $ */ /* @@ -1304,6 +1304,14 @@ srioctl(struct ifnet *ifp, int cmd, caddr_t data) default: sc->ifsppp.pp_flags = PP_KEEPALIVE; sppp_attach(&sc->ifsppp.pp_if); + + /* + * Shortcut the sppp tls/tlf actions to + * up/down events since our lower layer is + * always ready. + */ + sc->ifsppp.pp_tls = sc->ifsppp.pp_up; + sc->ifsppp.pp_tlf = sc->ifsppp.pp_down; } sc->attached = sc->protocol; @@ -1487,7 +1495,15 @@ sr_up(struct sr_softc *sc) default: sc->ifsppp.pp_flags = PP_KEEPALIVE; sppp_attach(&sc->ifsppp.pp_if); - } + + /* + * Shortcut the sppp tls/tlf actions to + * up/down events since our lower layer is + * always ready. + */ + sc->ifsppp.pp_tls = sc->ifsppp.pp_up; + sc->ifsppp.pp_tlf = sc->ifsppp.pp_down; + } sc->attached = sc->protocol; } diff --git a/sys/dev/sr/if_sr_isa.c b/sys/dev/sr/if_sr_isa.c index 21c0f48cae2e8..a9abd8f3c909e 100644 --- a/sys/dev/sr/if_sr_isa.c +++ b/sys/dev/sr/if_sr_isa.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: if_sr.c,v 1.6 1997/02/22 09:36:35 peter Exp $ */ /* @@ -1304,6 +1304,14 @@ srioctl(struct ifnet *ifp, int cmd, caddr_t data) default: sc->ifsppp.pp_flags = PP_KEEPALIVE; sppp_attach(&sc->ifsppp.pp_if); + + /* + * Shortcut the sppp tls/tlf actions to + * up/down events since our lower layer is + * always ready. + */ + sc->ifsppp.pp_tls = sc->ifsppp.pp_up; + sc->ifsppp.pp_tlf = sc->ifsppp.pp_down; } sc->attached = sc->protocol; @@ -1487,7 +1495,15 @@ sr_up(struct sr_softc *sc) default: sc->ifsppp.pp_flags = PP_KEEPALIVE; sppp_attach(&sc->ifsppp.pp_if); - } + + /* + * Shortcut the sppp tls/tlf actions to + * up/down events since our lower layer is + * always ready. + */ + sc->ifsppp.pp_tls = sc->ifsppp.pp_up; + sc->ifsppp.pp_tlf = sc->ifsppp.pp_down; + } sc->attached = sc->protocol; } |
