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.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
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.
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.
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 $
41 * Copyright (c) 1996-1999 Whistle Communications, Inc.
42 * All rights reserved.
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.
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
73 * Author: Archie Cobbs <archie@freebsd.org>
75 * $Whistle: ng_fec.h,v 1.5 1999/01/20 00:22:13 archie Exp $
78 #ifndef _NETGRAPH_NG_FEC_H_
79 #define _NETGRAPH_NG_FEC_H_
83 /* Node type name and magic cookie */
84 #define NG_FEC_NODE_TYPE "fec"
85 #define NGM_FEC_COOKIE 983566799
87 /* Interface base name */
88 #define NG_FEC_FEC_NAME "fec"
89 #define NG_FEC_FEC_NAME_MAX 15
92 #define NG_FEC_MTU_MIN 72
93 #define NG_FEC_MTU_MAX 65535
94 #define NG_FEC_MTU_DEFAULT 1500
96 /* Special flags for mbufs. */
97 #define M_FEC_MAC 0x2000
98 #define M_FEC_INET 0x4000
99 #define M_FEC_INET6 0x8000
101 /* Netgraph commands */
105 NGM_FEC_SET_MODE_MAC
,
106 NGM_FEC_SET_MODE_INET
,
107 NGM_FEC_SET_MODE_INET6
110 struct ng_fec_ifname
{
111 char ngif_name
[NG_FEC_FEC_NAME_MAX
+ 1];
114 #endif /* _NETGRAPH_NG_FEC_H_ */