xref: /f-stack/tools/compat/include/netgraph/ng_hub.h (revision 3b2bd0f6)
1*3b2bd0f6Slogwang /*-
2*3b2bd0f6Slogwang  * Copyright (c) 2004 Ruslan Ermilov
3*3b2bd0f6Slogwang  * All rights reserved.
4*3b2bd0f6Slogwang  *
5*3b2bd0f6Slogwang  * Redistribution and use in source and binary forms, with or without
6*3b2bd0f6Slogwang  * modification, are permitted provided that the following conditions
7*3b2bd0f6Slogwang  * are met:
8*3b2bd0f6Slogwang  * 1. Redistributions of source code must retain the above copyright
9*3b2bd0f6Slogwang  *    notice, this list of conditions and the following disclaimer.
10*3b2bd0f6Slogwang  * 2. Redistributions in binary form must reproduce the above copyright
11*3b2bd0f6Slogwang  *    notice, this list of conditions and the following disclaimer in the
12*3b2bd0f6Slogwang  *    documentation and/or other materials provided with the distribution.
13*3b2bd0f6Slogwang  *
14*3b2bd0f6Slogwang  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*3b2bd0f6Slogwang  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*3b2bd0f6Slogwang  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*3b2bd0f6Slogwang  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*3b2bd0f6Slogwang  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*3b2bd0f6Slogwang  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*3b2bd0f6Slogwang  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*3b2bd0f6Slogwang  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*3b2bd0f6Slogwang  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*3b2bd0f6Slogwang  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*3b2bd0f6Slogwang  * SUCH DAMAGE.
25*3b2bd0f6Slogwang  *
26*3b2bd0f6Slogwang  * $FreeBSD$
27*3b2bd0f6Slogwang  */
28*3b2bd0f6Slogwang 
29*3b2bd0f6Slogwang #ifndef _NETGRAPH_NG_HUB_H_
30*3b2bd0f6Slogwang #define	_NETGRAPH_NG_HUB_H_
31*3b2bd0f6Slogwang 
32*3b2bd0f6Slogwang /* Node type name and magic cookie. */
33*3b2bd0f6Slogwang #define	NG_HUB_NODE_TYPE	"hub"
34*3b2bd0f6Slogwang #define	NGM_HUB_COOKIE		1082189597
35*3b2bd0f6Slogwang 
36*3b2bd0f6Slogwang /* Netgraph control messages */
37*3b2bd0f6Slogwang enum {
38*3b2bd0f6Slogwang 	NGM_HUB_SET_PERSISTENT = 1,	/* set persistent mode */
39*3b2bd0f6Slogwang };
40*3b2bd0f6Slogwang 
41*3b2bd0f6Slogwang #endif /* _NETGRAPH_NG_HUB_H_ */
42