Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_tap.h
Show All 34 Lines | |||||
/* | /* | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
* $Id: if_tap.h,v 0.7 2000/07/12 04:12:51 max Exp $ | * $Id: if_tap.h,v 0.7 2000/07/12 04:12:51 max Exp $ | ||||
*/ | */ | ||||
#ifndef _NET_IF_TAP_H_ | #ifndef _NET_IF_TAP_H_ | ||||
#define _NET_IF_TAP_H_ | #define _NET_IF_TAP_H_ | ||||
/* refer to if_tapvar.h for the softc stuff */ | #include <net/if_tun.h> | ||||
/* maximum receive packet size (hard limit) */ | /* maximum receive packet size (hard limit) */ | ||||
#define TAPMRU 16384 | #define TAPMRU 16384 | ||||
struct tapinfo { | #define tapinfo tuninfo | ||||
int baudrate; /* linespeed */ | |||||
short mtu; /* maximum transmission unit */ | |||||
u_char type; /* ethernet, tokenring, etc. */ | |||||
u_char dummy; /* place holder */ | |||||
}; | |||||
/* ioctl's for get/set debug */ | /* | ||||
#define TAPSDEBUG _IOW('t', 90, int) | * ioctl's for get/set debug; these are aliases of TUN* ioctls, see net/if_tun.h | ||||
#define TAPGDEBUG _IOR('t', 89, int) | * for details. | ||||
#define TAPSIFINFO _IOW('t', 91, struct tapinfo) | */ | ||||
#define TAPGIFINFO _IOR('t', 92, struct tapinfo) | #define TAPSDEBUG TUNSDEBUG | ||||
#define TAPGDEBUG TUNGDEBUG | |||||
#define TAPSIFINFO TUNSIFINFO | |||||
#define TAPGIFINFO TUNGIFINFO | |||||
#define TAPGIFNAME _IOR('t', 93, struct ifreq) | #define TAPGIFNAME _IOR('t', 93, struct ifreq) | ||||
/* VMware ioctl's */ | /* VMware ioctl's */ | ||||
#define VMIO_SIOCSIFFLAGS _IOWINT('V', 0) | #define VMIO_SIOCSIFFLAGS _IOWINT('V', 0) | ||||
#define VMIO_SIOCSKEEP _IO('V', 1) | #define VMIO_SIOCSKEEP _IO('V', 1) | ||||
#define VMIO_SIOCSIFBR _IO('V', 2) | #define VMIO_SIOCSIFBR _IO('V', 2) | ||||
#define VMIO_SIOCSLADRF _IO('V', 3) | #define VMIO_SIOCSLADRF _IO('V', 3) | ||||
Show All 9 Lines |