FreeBSD/Linux Kernel Cross Reference
sys/net/if_tun.h
1 /* $NetBSD: if_tun.h,v 1.5 1994/06/29 06:36:27 cgd Exp $ */
2
3 /*
4 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
5 * Nottingham University 1987.
6 *
7 * This source may be freely distributed, however I would be interested
8 * in any changes that are made.
9 *
10 * This driver takes packets off the IP i/f and hands them up to a
11 * user process to have it's wicked way with. This driver has it's
12 * roots in a similar driver written by Phil Cockcroft (formerly) at
13 * UCL. This driver is based much more on read/write/select mode of
14 * operation though.
15 *
16 * $FreeBSD: src/sys/net/if_tun.h,v 1.6.2.5 1999/09/05 08:17:49 peter Exp $
17 */
18
19 #ifndef _NET_IF_TUN_H_
20 #define _NET_IF_TUN_H_
21
22 /* Refer to if_tunvar.h for the softc stuff */
23
24 /* Maximum transmit packet size (default) */
25 #define TUNMTU 1500
26
27 /* Maximum receive packet size (hard limit) */
28 /* big enough for ATM/"Frame Relay" packets at least */
29 #define TUNMRU 16384
30
31 struct tuninfo {
32 int baudrate; /* linespeed */
33 short mtu; /* maximum transmission unit */
34 u_char type; /* ethernet, tokenring, etc. */
35 u_char dummy; /* place holder */
36 };
37
38 /* ioctl's for get/set debug */
39 #define TUNSDEBUG _IOW('t', 90, int)
40 #define TUNGDEBUG _IOR('t', 89, int)
41 #define TUNSIFINFO _IOW('t', 91, struct tuninfo)
42 #define TUNGIFINFO _IOR('t', 92, struct tuninfo)
43
44 #endif /* !_NET_IF_TUN_H_ */
Cache object: cc484f31cc9e183a841381fd3df92f11
|