1128355Sru/*- 2128355Sru * Copyright (c) 2004 Ruslan Ermilov 3128355Sru * All rights reserved. 4128355Sru * 5128355Sru * Redistribution and use in source and binary forms, with or without 6128355Sru * modification, are permitted provided that the following conditions 7128355Sru * are met: 8128355Sru * 1. Redistributions of source code must retain the above copyright 9128355Sru * notice, this list of conditions and the following disclaimer. 10128355Sru * 2. Redistributions in binary form must reproduce the above copyright 11128355Sru * notice, this list of conditions and the following disclaimer in the 12128355Sru * documentation and/or other materials provided with the distribution. 13128355Sru * 14128355Sru * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15128355Sru * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16128355Sru * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17128355Sru * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18128355Sru * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19128355Sru * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20128355Sru * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21128355Sru * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22128355Sru * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23128355Sru * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24128355Sru * SUCH DAMAGE. 25128355Sru * 26128355Sru * $FreeBSD$ 27128355Sru */ 28128355Sru 29128355Sru#ifndef _NETGRAPH_NG_HUB_H_ 30128355Sru#define _NETGRAPH_NG_HUB_H_ 31128355Sru 32128355Sru/* Node type name and magic cookie. */ 33128355Sru#define NG_HUB_NODE_TYPE "hub" 34128355Sru#define NGM_HUB_COOKIE 1082189597 35128355Sru 36207680Szec/* Netgraph control messages */ 37207680Szecenum { 38207680Szec NGM_HUB_SET_PERSISTENT = 1, /* set persistent mode */ 39207680Szec}; 40207680Szec 41128355Sru#endif /* _NETGRAPH_NG_HUB_H_ */ 42