xref: /freebsd/sys/netgraph/ng_device.h (revision a8353960351ce8bf978c3dc031b56ba85df5a109)
1a8353960SJulian Elischer /*
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  * 3. The name of the author may not be used to endorse or promote products
13a8353960SJulian Elischer  *    derived from this software without specific prior written permission.
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 
31a8353960SJulian Elischer #ifndef _NETGRAPH_DEVICE_H_
32a8353960SJulian Elischer #define _NETGRAPH_DEVICE_H_
33a8353960SJulian Elischer 
34a8353960SJulian Elischer /* Node type name and magic cookie */
35a8353960SJulian Elischer #define NG_DEVICE_NODE_TYPE	"device"
36a8353960SJulian Elischer #define NGM_DEVICE_COOKIE	1009920473
37a8353960SJulian Elischer 
38a8353960SJulian Elischer /* passing ioctl params */
39a8353960SJulian Elischer struct ngd_param_s {
40a8353960SJulian Elischer 	        void * p;
41a8353960SJulian Elischer };
42a8353960SJulian Elischer 
43a8353960SJulian Elischer 
44a8353960SJulian Elischer #endif /* _NETGRAPH_DEVICE_H_ */
45