xref: /f-stack/freebsd/netgraph/ng_split.h (revision 22ce4aff)
1a1fd9364Slogwang /*-
2*22ce4affSfengbojiang  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3a1fd9364Slogwang  *
4a1fd9364Slogwang  * Copyright (c) 1999-2000, Vitaly V Belekhov
5a1fd9364Slogwang  * All rights reserved.
6a1fd9364Slogwang  *
7a1fd9364Slogwang  * Redistribution and use in source and binary forms, with or without
8a1fd9364Slogwang  * modification, are permitted provided that the following conditions
9a1fd9364Slogwang  * are met:
10a1fd9364Slogwang  * 1. Redistributions of source code must retain the above copyright
11a1fd9364Slogwang  *    notice unmodified, this list of conditions, and the following
12a1fd9364Slogwang  *    disclaimer.
13a1fd9364Slogwang  * 2. Redistributions in binary form must reproduce the above copyright
14a1fd9364Slogwang  *    notice, this list of conditions and the following disclaimer in the
15a1fd9364Slogwang  *    documentation and/or other materials provided with the distribution.
16a1fd9364Slogwang  *
17a1fd9364Slogwang  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18a1fd9364Slogwang  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19a1fd9364Slogwang  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20a1fd9364Slogwang  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21a1fd9364Slogwang  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22a1fd9364Slogwang  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23a1fd9364Slogwang  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24a1fd9364Slogwang  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25a1fd9364Slogwang  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26a1fd9364Slogwang  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27a1fd9364Slogwang  * SUCH DAMAGE.
28a1fd9364Slogwang  *
29a1fd9364Slogwang  * $FreeBSD$
30a1fd9364Slogwang  *
31a1fd9364Slogwang  */
32a1fd9364Slogwang 
33a1fd9364Slogwang #ifndef _NETGRAPH_NG_SPLIT_H_
34a1fd9364Slogwang #define _NETGRAPH_NG_SPLIT_H_
35a1fd9364Slogwang 
36a1fd9364Slogwang /* Node type name and magic cookie */
37a1fd9364Slogwang #define NG_SPLIT_NODE_TYPE	"split"
38a1fd9364Slogwang #define NGM_SPLIT_COOKIE	949409402
39a1fd9364Slogwang 
40a1fd9364Slogwang /* My hook names */
41a1fd9364Slogwang #define NG_SPLIT_HOOK_MIXED	"mixed"	/* Mixed stream (in/out) */
42a1fd9364Slogwang #define NG_SPLIT_HOOK_OUT	"out"	/* Output to outhook (sending out) */
43a1fd9364Slogwang #define NG_SPLIT_HOOK_IN	"in"	/* Input from inhook (receiving) */
44a1fd9364Slogwang 
45a1fd9364Slogwang #endif /* _NETGRAPH_NG_SPLIT_H_ */
46