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