The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/net/if_tun.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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 its 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$
   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 #define TUNMRU          16384
   29 
   30 struct tuninfo {
   31         int     baudrate;               /* linespeed */
   32         short   mtu;                    /* maximum transmission unit */
   33         u_char  type;                   /* ethernet, tokenring, etc. */
   34         u_char  dummy;                  /* place holder */
   35 };
   36 
   37 /* ioctl's for get/set debug */
   38 #define TUNSDEBUG       _IOW('t', 90, int)
   39 #define TUNGDEBUG       _IOR('t', 89, int)
   40 #define TUNSIFINFO      _IOW('t', 91, struct tuninfo)
   41 #define TUNGIFINFO      _IOR('t', 92, struct tuninfo)
   42 #define TUNSLMODE       _IOW('t', 93, int)
   43 #define TUNSIFMODE      _IOW('t', 94, int)
   44 #define TUNSIFPID       _IO('t', 95)
   45 #define TUNSIFHEAD      _IOW('t', 96, int)
   46 #define TUNGIFHEAD      _IOR('t', 97, int)
   47 
   48 #endif /* !_NET_IF_TUN_H_ */

Cache object: 740d9bdd9d95a9eb5e0b2b16511df32b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.