diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2003-08-06 14:53:27 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2003-08-06 14:53:27 +0000 |
commit | 68ece758394a0200a8113db9a4cb80972a2dbddd (patch) | |
tree | 8564ad1bf4b9dd7743fabe403af689dc7bfe59a8 /sys/dev/patm | |
parent | a808105d6324a02d8013856bb268e04d6131bdab (diff) | |
download | src-68ece758394a0200a8113db9a4cb80972a2dbddd.tar.gz src-68ece758394a0200a8113db9a4cb80972a2dbddd.zip |
Remove the ATMIOCENA and ATMIOCDIS ioctl. Everyting has been converted
to use the new OPENVCC and CLOSEVCC calls that allow the sepcification
of traffic parameters for the connections.
Notes
Notes:
svn path=/head/; revision=118548
Diffstat (limited to 'sys/dev/patm')
-rw-r--r-- | sys/dev/patm/if_patm_ioctl.c | 49 |
1 files changed, 2 insertions, 47 deletions
diff --git a/sys/dev/patm/if_patm_ioctl.c b/sys/dev/patm/if_patm_ioctl.c index 1bce9db4cbd5..bbabf971322c 100644 --- a/sys/dev/patm/if_patm_ioctl.c +++ b/sys/dev/patm/if_patm_ioctl.c @@ -200,29 +200,6 @@ patm_open_vcc(struct patm_softc *sc, struct atmio_openvcc *arg) } /* - * Enable ioctl for NATM. Map to an open ioctl. - */ -static int -patm_open_vcc1(struct patm_softc *sc, struct atm_pseudoioctl *ph) -{ - struct atmio_openvcc v; - - bzero(&v, sizeof(v)); - v.param.flags = ATM_PH_FLAGS(&ph->aph) & (ATM_PH_AAL5 | ATM_PH_LLCSNAP); - v.param.flags |= ATMIO_FLAG_ASYNC; - - v.param.vpi = ATM_PH_VPI(&ph->aph); - v.param.vci = ATM_PH_VCI(&ph->aph); - v.param.aal = (ATM_PH_FLAGS(&ph->aph) & ATM_PH_AAL5) - ? ATMIO_AAL_5 : ATMIO_AAL_0; - v.param.traffic = ATMIO_TRAFFIC_UBR;; - v.param.tparam.pcr = sc->ifatm.mib.pcr; - v.rxhand = ph->rxhand; - - return (patm_open_vcc(sc, &v)); -} - -/* * Try to close the given VCC */ static int @@ -282,20 +259,6 @@ patm_close_vcc(struct patm_softc *sc, struct atmio_closevcc *arg) } /* - * Close a VCC asynchronuosly - */ -static int -patm_close_vcc1(struct patm_softc *sc, struct atm_pseudoioctl *ph) -{ - struct atmio_closevcc v; - - v.vpi = ATM_PH_VPI(&ph->aph); - v.vci = ATM_PH_VCI(&ph->aph); - - return (patm_close_vcc(sc, &v)); -} - -/* * VCC has been finally closed. */ void @@ -403,22 +366,14 @@ patm_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) ifp->if_mtu = ifr->ifr_mtu; break; - case SIOCATMOPENVCC: /* netgraph/harp internal use */ + case SIOCATMOPENVCC: /* kernel internal use */ error = patm_open_vcc(sc, (struct atmio_openvcc *)data); break; - case SIOCATMCLOSEVCC: /* netgraph and HARP internal use */ + case SIOCATMCLOSEVCC: /* kernel internal use */ error = patm_close_vcc(sc, (struct atmio_closevcc *)data); break; - case SIOCATMENA: /* NATM internal use */ - error = patm_open_vcc1(sc, (struct atm_pseudoioctl *)data); - break; - - case SIOCATMDIS: /* NATM internal use */ - error = patm_close_vcc1(sc, (struct atm_pseudoioctl *)data); - break; - case SIOCATMGVCCS: /* external use */ /* return vcc table */ vtab = atm_getvccs((struct atmio_vcc **)sc->vccs, |