1139823Simp/*-
263670Snsayer * Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com>
363670Snsayer * All rights reserved.
463670Snsayer *
563670Snsayer * Redistribution and use in source and binary forms, with or without
663670Snsayer * modification, are permitted provided that the following conditions
763670Snsayer * are met:
863670Snsayer * 1. Redistributions of source code must retain the above copyright
963670Snsayer *    notice, this list of conditions and the following disclaimer.
1063670Snsayer * 2. Redistributions in binary form must reproduce the above copyright
1163670Snsayer *    notice, this list of conditions and the following disclaimer in the
1263670Snsayer *    documentation and/or other materials provided with the distribution.
1363670Snsayer *
1463670Snsayer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1563670Snsayer * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1663670Snsayer * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1763670Snsayer * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1863670Snsayer * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1963670Snsayer * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2063670Snsayer * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2163670Snsayer * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2263670Snsayer * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2363670Snsayer * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2463670Snsayer * SUCH DAMAGE.
2563670Snsayer *
2663670Snsayer * BASED ON:
2763670Snsayer * -------------------------------------------------------------------------
2863670Snsayer *
2963670Snsayer * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
3063670Snsayer * Nottingham University 1987.
3163670Snsayer */
3263670Snsayer
3363670Snsayer/*
3463670Snsayer * $FreeBSD$
3563670Snsayer * $Id: if_tap.h,v 0.7 2000/07/12 04:12:51 max Exp $
3663670Snsayer */
3763670Snsayer
3863670Snsayer#ifndef _NET_IF_TAP_H_
3963670Snsayer#define _NET_IF_TAP_H_
4063670Snsayer
4163670Snsayer/* refer to if_tapvar.h for the softc stuff */
4263670Snsayer
4363670Snsayer/* maximum receive packet size (hard limit) */
4463670Snsayer#define	TAPMRU		16384
4563670Snsayer
4663670Snsayerstruct tapinfo {
4763670Snsayer	int	baudrate;	/* linespeed                 */
4863670Snsayer	short	mtu;		/* maximum transmission unit */
4963670Snsayer	u_char	type;		/* ethernet, tokenring, etc. */
5063670Snsayer	u_char	dummy;		/* place holder              */
5163670Snsayer};
5263670Snsayer
5363670Snsayer/* ioctl's for get/set debug */
5463670Snsayer#define	TAPSDEBUG		_IOW('t', 90, int)
5563670Snsayer#define	TAPGDEBUG		_IOR('t', 89, int)
5663670Snsayer#define	TAPSIFINFO		_IOW('t', 91, struct tapinfo)
5763670Snsayer#define	TAPGIFINFO		_IOR('t', 92, struct tapinfo)
58182880Semax#define	TAPGIFNAME		_IOR('t', 93, struct ifreq)
5963670Snsayer
6063670Snsayer/* VMware ioctl's */
61162711Sru#define VMIO_SIOCSIFFLAGS	_IOWINT('V', 0)
6263670Snsayer#define VMIO_SIOCSKEEP		_IO('V', 1)
6363670Snsayer#define VMIO_SIOCSIFBR		_IO('V', 2)
6463670Snsayer#define VMIO_SIOCSLADRF		_IO('V', 3)
6563670Snsayer
6663670Snsayer/* XXX -- unimplemented */
6763670Snsayer#define VMIO_SIOCSETMACADDR	_IO('V', 4)
6863670Snsayer
6963670Snsayer/* XXX -- not used? */
7063670Snsayer#define VMIO_SIOCPORT		_IO('V', 5)
7163670Snsayer#define VMIO_SIOCBRIDGE		_IO('V', 6)
7263670Snsayer#define VMIO_SIOCNETIF		_IO('V', 7)
7363670Snsayer
7463670Snsayer#endif /* !_NET_IF_TAP_H_ */
75