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