If the current thread is not a network thread then rejecting the packet back
[dragonfly.git] / sys / netgraph7 / ng_gif_demux.h
1 /*
2  * ng_gif_demux.h
3  */
4
5 /*-
6  * Copyright 2001 The Aerospace Corporation.  All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions, and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions, and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. The name of The Aerospace Corporation may not be used to endorse or
18  *    promote products derived from this software.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE AEROSPACE CORPORATION ``AS IS'' AND
21  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE
24  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30  * SUCH DAMAGE.
31  *
32  * $FreeBSD: src/sys/netgraph/ng_gif_demux.h,v 1.5 2005/01/07 01:45:39 imp Exp $
33  * $DragonFly: src/sys/netgraph7/ng_gif_demux.h,v 1.2 2008/06/26 23:05:35 dillon Exp $
34  */
35
36 #ifndef _NETGRAPH_NG_GIF_DEMUX_H_
37 #define _NETGRAPH_NG_GIF_DEMUX_H_
38
39 /* Node type name and magic cookie */
40 #define NG_GIF_DEMUX_NODE_TYPE          "gif_demux"
41 #define NGM_GIF_DEMUX_COOKIE            995567329
42
43 /* Hook names */
44 #define NG_GIF_DEMUX_HOOK_GIF           "gif"
45 #define NG_GIF_DEMUX_HOOK_INET          "inet"
46 #define NG_GIF_DEMUX_HOOK_INET6         "inet6"
47 #define NG_GIF_DEMUX_HOOK_ATALK         "atalk"
48 #define NG_GIF_DEMUX_HOOK_IPX           "ipx"
49 #define NG_GIF_DEMUX_HOOK_ATM           "atm"
50 #define NG_GIF_DEMUX_HOOK_NATM          "natm"
51
52 #endif /* _NETGRAPH_NG_GIF_DEMUX_H_ */