[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]

FreeBSD/Linux Kernel Cross Reference
sys/netgraph/ng_fec.h

Version: -  FREEBSD  -  FREEBSD7  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  OPENSOLARIS  -  minix-3-1-1  -  TRUSTEDBSD-SEBSD  -  FREEBSD-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  excerpts  -  bigexcerpts 

  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  */
 39 /*-
 40  * Copyright (c) 1996-1999 Whistle Communications, Inc.
 41  * All rights reserved.
 42  * 
 43  * Subject to the following obligations and disclaimer of warranty, use and
 44  * redistribution of this software, in source or object code forms, with or
 45  * without modifications are expressly permitted by Whistle Communications;
 46  * provided, however, that:
 47  * 1. Any and all reproductions of the source or object code must include the
 48  *    copyright notice above and the following disclaimer of warranties; and
 49  * 2. No rights are granted, in any manner or form, to use Whistle
 50  *    Communications, Inc. trademarks, including the mark "WHISTLE
 51  *    COMMUNICATIONS" on advertising, endorsements, or otherwise except as
 52  *    such appears in the above copyright notice or in the software.
 53  * 
 54  * THIS SOFTWARE IS BEING PROVIDED BY WHISTLE COMMUNICATIONS "AS IS", AND
 55  * TO THE MAXIMUM EXTENT PERMITTED BY LAW, WHISTLE COMMUNICATIONS MAKES NO
 56  * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS SOFTWARE,
 57  * INCLUDING WITHOUT LIMITATION, ANY AND ALL IMPLIED WARRANTIES OF
 58  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
 59  * WHISTLE COMMUNICATIONS DOES NOT WARRANT, GUARANTEE, OR MAKE ANY
 60  * REPRESENTATIONS REGARDING THE USE OF, OR THE RESULTS OF THE USE OF THIS
 61  * SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY OR OTHERWISE.
 62  * IN NO EVENT SHALL WHISTLE COMMUNICATIONS BE LIABLE FOR ANY DAMAGES
 63  * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING
 64  * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 65  * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
 66  * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
 67  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 68  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 69  * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
 70  * OF SUCH DAMAGE.
 71  *
 72  * Author: Archie Cobbs <archie@freebsd.org>
 73  *
 74  * $Whistle: ng_fec.h,v 1.5 1999/01/20 00:22:13 archie Exp $
 75  */
 76 
 77 #ifndef _NETGRAPH_NG_FEC_H_
 78 #define _NETGRAPH_NG_FEC_H_
 79 
 80 #define NETISR_FEC                      26
 81 
 82 /* Node type name and magic cookie */
 83 #define NG_FEC_NODE_TYPE                "fec"
 84 #define NGM_FEC_COOKIE                  983566799
 85 
 86 /* Interface base name */
 87 #define NG_FEC_FEC_NAME                 "fec"
 88 #define NG_FEC_FEC_NAME_MAX             15
 89 
 90 /* MTU bounds */
 91 #define NG_FEC_MTU_MIN                  72
 92 #define NG_FEC_MTU_MAX                  65535
 93 #define NG_FEC_MTU_DEFAULT              1500
 94 
 95 /* Special flags for mbufs. */
 96 #define M_FEC_MAC                       0x2000
 97 #define M_FEC_INET                      0x4000
 98 #define M_FEC_INET6                     0x8000
 99 
100 /* Netgraph commands */
101 enum {
102         NGM_FEC_ADD_IFACE,
103         NGM_FEC_DEL_IFACE,
104         NGM_FEC_SET_MODE_MAC,
105         NGM_FEC_SET_MODE_INET,
106         NGM_FEC_SET_MODE_INET6
107 };
108 
109 struct ng_fec_ifname {
110         char    ngif_name[NG_FEC_FEC_NAME_MAX + 1];
111 };
112 
113 #endif /* _NETGRAPH_NG_FEC_H_ */
114 

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]


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