1c398230bSWarner Losh /*- 2fe267a55SPedro F. Giffuni * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3fe267a55SPedro F. Giffuni * 4a8353960SJulian Elischer * Copyright (c) 2002 Mark Santcroos <marks@ripe.net> 5a8353960SJulian Elischer * 6a8353960SJulian Elischer * Redistribution and use in source and binary forms, with or without 7a8353960SJulian Elischer * modification, are permitted provided that the following conditions 8a8353960SJulian Elischer * are met: 9a8353960SJulian Elischer * 1. Redistributions of source code must retain the above copyright 10a8353960SJulian Elischer * notice, this list of conditions and the following disclaimer. 11a8353960SJulian Elischer * 2. Redistributions in binary form must reproduce the above copyright 12a8353960SJulian Elischer * notice, this list of conditions and the following disclaimer in the 13a8353960SJulian Elischer * documentation and/or other materials provided with the distribution. 14a8353960SJulian Elischer * 15a8353960SJulian Elischer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16a8353960SJulian Elischer * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17a8353960SJulian Elischer * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18a8353960SJulian Elischer * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19a8353960SJulian Elischer * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20a8353960SJulian Elischer * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21a8353960SJulian Elischer * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22a8353960SJulian Elischer * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23a8353960SJulian Elischer * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24a8353960SJulian Elischer * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25a8353960SJulian Elischer * 26a8353960SJulian Elischer * 27a8353960SJulian Elischer * $FreeBSD$ 28a8353960SJulian Elischer * 29a8353960SJulian Elischer */ 30a8353960SJulian Elischer 31e20480bfSRuslan Ermilov #ifndef _NETGRAPH_NG_DEVICE_H_ 32e20480bfSRuslan Ermilov #define _NETGRAPH_NG_DEVICE_H_ 33a8353960SJulian Elischer 34a8353960SJulian Elischer /* Node type name and magic cookie */ 35a8353960SJulian Elischer #define NG_DEVICE_NODE_TYPE "device" 36547d3473SGleb Smirnoff #define NGM_DEVICE_COOKIE 1091129178 37547d3473SGleb Smirnoff #define NG_DEVICE_DEVNAME "ngd" 38a8353960SJulian Elischer 39547d3473SGleb Smirnoff /* Netgraph control messages */ 40547d3473SGleb Smirnoff enum { 41547d3473SGleb Smirnoff NGM_DEVICE_GET_DEVNAME, 42*44aae623SIan Lepore NGM_DEVICE_ETHERALIGN, 43547d3473SGleb Smirnoff }; 44547d3473SGleb Smirnoff 45547d3473SGleb Smirnoff #if 0 46a8353960SJulian Elischer /* passing ioctl params */ 47a8353960SJulian Elischer struct ngd_param_s { 48a8353960SJulian Elischer void * p; 49a8353960SJulian Elischer }; 50547d3473SGleb Smirnoff #endif 51a8353960SJulian Elischer 52e20480bfSRuslan Ermilov #endif /* _NETGRAPH_NG_DEVICE_H_ */ 53