From 74ebe6ce41c47956661cfb12dc878433fc0417c9 Mon Sep 17 00:00:00 2001 From: harti Date: Tue, 17 Jun 2003 11:51:30 +0000 Subject: Add definitions for the ioctls that are used by netgraph and harp to open and close VCCs. --- sys/net/if_atm.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sys/net/if_atm.h') 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) -- cgit v1.1