summaryrefslogtreecommitdiffstats
path: root/sys/dev/patm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-08-06 14:53:27 +0000
committerharti <harti@FreeBSD.org>2003-08-06 14:53:27 +0000
commitdcc92de50316ca9086fc809d0bab536a036c4ba0 (patch)
tree8564ad1bf4b9dd7743fabe403af689dc7bfe59a8 /sys/dev/patm
parentc4df8bc17e600eecd5f6415645461286ff9cdc2f (diff)
downloadFreeBSD-src-dcc92de50316ca9086fc809d0bab536a036c4ba0.zip
FreeBSD-src-dcc92de50316ca9086fc809d0bab536a036c4ba0.tar.gz
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.
Diffstat (limited to 'sys/dev/patm')
-rw-r--r--sys/dev/patm/if_patm_ioctl.c49
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 1bce9db..bbabf97 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,
OpenPOWER on IntegriCloud