diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-13 18:38:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-13 18:38:22 +0000 |
commit | a4220a32aa17b97eafef4b3c1fdfa870c692785e (patch) | |
tree | 4945c6a3444f6ae15a9a1c082643f27364d3ea54 /mdk-stage1/ppp/sunos4/ppp_ahdlc_vdcmd.c | |
parent | 2522c7a91d008ee569dd81713af1d13940cbf454 (diff) | |
download | drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar.gz drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar.bz2 drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar.xz drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.zip |
kill 10 years old snapshot of pppd & pppoe
(now using upstream pppd & pppoe)
Diffstat (limited to 'mdk-stage1/ppp/sunos4/ppp_ahdlc_vdcmd.c')
-rw-r--r-- | mdk-stage1/ppp/sunos4/ppp_ahdlc_vdcmd.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/mdk-stage1/ppp/sunos4/ppp_ahdlc_vdcmd.c b/mdk-stage1/ppp/sunos4/ppp_ahdlc_vdcmd.c deleted file mode 100644 index 2dbe8262b..000000000 --- a/mdk-stage1/ppp/sunos4/ppp_ahdlc_vdcmd.c +++ /dev/null @@ -1,57 +0,0 @@ -#include <sys/types.h> -#include <sys/errno.h> -#include <sys/conf.h> -#include <sun/vddrv.h> - -extern struct streamtab ppp_ahdlcinfo; -extern int ppp_ahdlc_count; - -static struct vdldrv vd = { - VDMAGIC_USER, - "ppp_ahdl" -}; - -static int fmodsw_index = -1; - -int -ppp_ahdlc_vdcmd(fun, vdp, vdi, vds) - unsigned int fun; - struct vddrv *vdp; - addr_t vdi; - struct vdstat *vds; -{ - int n; - - switch (fun) { - case VDLOAD: - vdp->vdd_vdtab = (struct vdlinkage *) &vd; - if (fmodsw_index >= 0) - return EBUSY; - for (n = 0; n < fmodcnt; ++n) - if (fmodsw[n].f_str == 0) - break; - if (n >= fmodcnt) - return ENODEV; - strncpy(fmodsw[n].f_name, vd.Drv_name, FMNAMESZ+1); - fmodsw[n].f_str = &ppp_ahdlcinfo; - fmodsw_index = n; - break; - - case VDUNLOAD: - if (ppp_ahdlc_count > 0) - return EBUSY; - if (fmodsw_index <= 0) - return EINVAL; - fmodsw[fmodsw_index].f_name[0] = 0; - fmodsw[fmodsw_index].f_str = 0; - fmodsw_index = -1; - break; - - case VDSTAT: - break; - - default: - return EIO; - } - return 0; -} |