summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-06-17 11:51:30 +0000
committerharti <harti@FreeBSD.org>2003-06-17 11:51:30 +0000
commit74ebe6ce41c47956661cfb12dc878433fc0417c9 (patch)
treedda5e23861e1f48c9fb7a4f19470dae00b7082d3 /sys/net
parent85db173ae676a74b59e9688d9d7d314358d40e01 (diff)
downloadFreeBSD-src-74ebe6ce41c47956661cfb12dc878433fc0417c9.zip
FreeBSD-src-74ebe6ce41c47956661cfb12dc878433fc0417c9.tar.gz
Add definitions for the ioctls that are used by netgraph and harp to open
and close VCCs.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_atm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/net/if_atm.h b/sys/net/if_atm.h
index fee0185..988479b 100644
--- a/sys/net/if_atm.h
+++ b/sys/net/if_atm.h
@@ -170,6 +170,22 @@ struct ifatm {
void *ngpriv; /* netgraph link */
};
+/*
+ * Keep structures in sync with ng_atm.h
+ *
+ * These are used by netgraph/harp to call the driver
+ * NATM uses the atm_pseudoioctl instead.
+ */
+struct atmio_openvcc {
+ void *rxhand; /* handle argument */
+ struct atmio_vcc param; /* parameters */
+};
+
+struct atmio_closevcc {
+ uint16_t vpi;
+ uint16_t vci;
+};
+
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
#define RTALLOC1(A,B) rtalloc1((A),(B))
#elif defined(__FreeBSD__)
@@ -212,6 +228,8 @@ struct atm_pseudoioctl {
#define SIOCATMENA _IOWR('a', 123, struct atm_pseudoioctl) /* enable */
#define SIOCATMDIS _IOWR('a', 124, struct atm_pseudoioctl) /* disable */
#define SIOCATMGETVCCS _IOW('a', 125, struct atmio_vcctable)
+#define SIOCATMOPENVCC _IOR('a', 126, struct atmio_openvcc)
+#define SIOCATMCLOSEVCC _IOR('a', 127, struct atmio_closevcc)
#define SIOCATMGVCCS _IOWR('i', 230, struct ifreq)
OpenPOWER on IntegriCloud