]>
git.saurik.com Git - apple/xnu.git/blob - bsd/net/if_tun.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
22 /* $NetBSD: if_tun.h,v 1.5 1994/06/29 06:36:27 cgd Exp $ */
25 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
26 * Nottingham University 1987.
28 * This source may be freely distributed, however I would be interested
29 * in any changes that are made.
31 * This driver takes packets off the IP i/f and hands them up to a
32 * user process to have its wicked way with. This driver has it's
33 * roots in a similar driver written by Phil Cockcroft (formerly) at
34 * UCL. This driver is based much more on read/write/select mode of
39 #ifndef _NET_IF_TUN_H_
40 #define _NET_IF_TUN_H_
41 #include <sys/appleapiopts.h>
42 #ifdef __APPLE_API_PRIVATE
44 /* Refer to if_tunvar.h for the softc stuff */
46 /* Maximum transmit packet size (default) */
49 /* Maximum receive packet size (hard limit) */
53 int baudrate
; /* linespeed */
54 short mtu
; /* maximum transmission unit */
55 u_char type
; /* ethernet, tokenring, etc. */
56 u_char dummy
; /* place holder */
59 /* ioctl's for get/set debug */
60 #define TUNSDEBUG _IOW('t', 90, int)
61 #define TUNGDEBUG _IOR('t', 89, int)
62 #define TUNSIFINFO _IOW('t', 91, struct tuninfo)
63 #define TUNGIFINFO _IOR('t', 92, struct tuninfo)
65 #endif /* __APPLE_API_PRIVATE */
66 #endif /* !_NET_IF_TUN_H_ */