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