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