Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_tap.h
Show All 37 Lines | |||||
*/ | */ | ||||
#ifndef _NET_IF_TAP_H_ | #ifndef _NET_IF_TAP_H_ | ||||
#define _NET_IF_TAP_H_ | #define _NET_IF_TAP_H_ | ||||
#include <net/if_tun.h> | #include <net/if_tun.h> | ||||
/* maximum receive packet size (hard limit) */ | /* maximum receive packet size (hard limit) */ | ||||
#define TAPMRU 16384 | #define TAPMRU 65535 | ||||
#define tapinfo tuninfo | #define tapinfo tuninfo | ||||
/* | /* | ||||
* ioctl's for get/set debug; these are aliases of TUN* ioctls, see net/if_tun.h | * ioctl's for get/set debug; these are aliases of TUN* ioctls, see net/if_tun.h | ||||
* for details. | * for details. | ||||
*/ | */ | ||||
#define TAPSDEBUG TUNSDEBUG | #define TAPSDEBUG TUNSDEBUG | ||||
#define TAPGDEBUG TUNGDEBUG | #define TAPGDEBUG TUNGDEBUG | ||||
#define TAPSIFINFO TUNSIFINFO | #define TAPSIFINFO TUNSIFINFO | ||||
#define TAPGIFINFO TUNGIFINFO | #define TAPGIFINFO TUNGIFINFO | ||||
#define TAPGIFNAME TUNGIFNAME | #define TAPGIFNAME TUNGIFNAME | ||||
#define TAPSVNETHDR _IOW('t', 91, int) | |||||
#define TAPGVNETHDR _IOR('t', 94, int) | |||||
/* 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) | ||||
/* XXX -- unimplemented */ | /* XXX -- unimplemented */ | ||||
#define VMIO_SIOCSETMACADDR _IO('V', 4) | #define VMIO_SIOCSETMACADDR _IO('V', 4) | ||||
/* XXX -- not used? */ | /* XXX -- not used? */ | ||||
#define VMIO_SIOCPORT _IO('V', 5) | #define VMIO_SIOCPORT _IO('V', 5) | ||||
#define VMIO_SIOCBRIDGE _IO('V', 6) | #define VMIO_SIOCBRIDGE _IO('V', 6) | ||||
#define VMIO_SIOCNETIF _IO('V', 7) | #define VMIO_SIOCNETIF _IO('V', 7) | ||||
#endif /* !_NET_IF_TAP_H_ */ | #endif /* !_NET_IF_TAP_H_ */ |