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/netgraph7/ng_fec.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 /*
    2  * ng_fec.h
    3  */
    4 
    5 /*-
    6  * Copyright (c) 2000 Berkeley Software Design, Inc.
    7  * Copyright (c) 1997, 1998, 1999, 2000
    8  *      Bill Paul <wpaul@osd.bsdi.com>.  All rights reserved.
    9  *
   10  * Redistribution and use in source and binary forms, with or without
   11  * modification, are permitted provided that the following conditions
   12  * are met:
   13  * 1. Redistributions of source code must retain the above copyright
   14  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in the
   17  *    documentation and/or other materials provided with the distribution.
   18  * 3. All advertising materials mentioning features or use of this software
   19  *    must display the following acknowledgement:
   20  *      This product includes software developed by Bill Paul.
   21  * 4. Neither the name of the author nor the names of any co-contributors
   22  *    may be used to endorse or promote products derived from this software
   23  *    without specific prior written permission.
   24  *
   25  * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
   26  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   27  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   28  * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
   29  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   30  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   31  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   32  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   33  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   34  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
   35  * THE POSSIBILITY OF SUCH DAMAGE.
   36  *
   37  * $FreeBSD: src/sys/netgraph/ng_fec.h,v 1.3 2005/01/07 01:45:39 imp Exp $
   38  * $DragonFly: src/sys/netgraph7/ng_fec.h,v 1.2 2008/06/26 23:05:35 dillon Exp $
   39  */
   40 /*-
   41  * Copyright (c) 1996-1999 Whistle Communications, Inc.
   42  * All rights reserved.
   43  * 
   44  * Subject to the following obligations and disclaimer of warranty, use and
   45  * redistribution of this software, in source or object code forms, with or
   46  * without modifications are expressly permitted by Whistle Communications;
   47  * provided, however, that:
   48  * 1. Any and all reproductions of the source or object code must include the
   49  *    copyright notice above and the following disclaimer of warranties; and
   50  * 2. No rights are granted, in any manner or form, to use Whistle
   51  *    Communications, Inc. trademarks, including the mark "WHISTLE
   52  *    COMMUNICATIONS" on advertising, endorsements, or otherwise except as
   53  *    such appears in the above copyright notice or in the software.
   54  * 
   55  * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND
   56  * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO
   57  * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,
   58  * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF
   59  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
   60  * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY
   61  * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS
   62  * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.
   63  * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES
   64  * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING
   65  * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
   66  * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
   67  * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
   68  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   69  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   70  * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
   71  * OF SUCH DAMAGE.
   72  *
   73  * Author: Archie Cobbs <archie@freebsd.org>
   74  *
   75  * $Whistle: ng_fec.h,v 1.5 1999/01/20 00:22:13 archie Exp $
   76  */
   77 
   78 #ifndef _NETGRAPH_NG_FEC_H_
   79 #define _NETGRAPH_NG_FEC_H_
   80 
   81 #define NETISR_FEC                      26
   82 
   83 /* Node type name and magic cookie */
   84 #define NG_FEC_NODE_TYPE                "fec"
   85 #define NGM_FEC_COOKIE                  983566799
   86 
   87 /* Interface base name */
   88 #define NG_FEC_FEC_NAME                 "fec"
   89 #define NG_FEC_FEC_NAME_MAX             15
   90 
   91 /* MTU bounds */
   92 #define NG_FEC_MTU_MIN                  72
   93 #define NG_FEC_MTU_MAX                  65535
   94 #define NG_FEC_MTU_DEFAULT              1500
   95 
   96 /* Special flags for mbufs. */
   97 #define M_FEC_MAC                       0x2000
   98 #define M_FEC_INET                      0x4000
   99 #define M_FEC_INET6                     0x8000
  100 
  101 /* Netgraph commands */
  102 enum {
  103         NGM_FEC_ADD_IFACE,
  104         NGM_FEC_DEL_IFACE,
  105         NGM_FEC_SET_MODE_MAC,
  106         NGM_FEC_SET_MODE_INET,
  107         NGM_FEC_SET_MODE_INET6
  108 };
  109 
  110 struct ng_fec_ifname {
  111         char    ngif_name[NG_FEC_FEC_NAME_MAX + 1];
  112 };
  113 
  114 #endif /* _NETGRAPH_NG_FEC_H_ */

Cache object: 7d642762187e0a74c4ae348431b5ecae


[ 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.