diff options
author | phk <phk@FreeBSD.org> | 1999-04-02 13:58:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-04-02 13:58:01 +0000 |
commit | 5c5c3ac7d9c309c3fd3f19547b5b807e2685e873 (patch) | |
tree | 3d92ca6bb788d39065a07461bb2218ea3575ceef /sys | |
parent | e4a7067080ec6e0d2320511224f571d572584de3 (diff) | |
download | FreeBSD-src-5c5c3ac7d9c309c3fd3f19547b5b807e2685e873.zip FreeBSD-src-5c5c3ac7d9c309c3fd3f19547b5b807e2685e873.tar.gz |
Add back cxswitch() it was used afterall.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/isa/if_cx.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c index 0b3b6d7..db417af 100644 --- a/sys/i386/isa/if_cx.c +++ b/sys/i386/isa/if_cx.c @@ -54,6 +54,9 @@ extern struct cdevsw cx_cdevsw; #include <machine/cronyx.h> #include <i386/isa/cxreg.h> +/* XXX exported. */ +void cxswitch (cx_chan_t *c, cx_soft_opt_t new); + static int cxprobe __P((struct isa_device *id)); static int cxattach __P((struct isa_device *id)); static void cxput __P((cx_chan_t *c, char b)); @@ -818,3 +821,22 @@ cxinput (cx_chan_t *c, void *buf, unsigned len) sppp_input (c->master, m); } +void cxswitch (cx_chan_t *c, cx_soft_opt_t new) +{ + new.ext = 0; + if (! new.ext) { + struct sppp *sp = (struct sppp*) c->ifp; + +#if 0 /* Doesn't work this way any more 990402 /phk */ + if (new.cisco) + sp->pp_flags |= PP_CISCO; + else + sp->pp_flags &= ~PP_CISCO; +#endif + if (new.keepalive) + sp->pp_flags |= PP_KEEPALIVE; + else + sp->pp_flags &= ~PP_KEEPALIVE; + } + c->sopt = new; +} |