tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / bsdsocket / net / pfil.h
blobca6379eff21174c8dd03eed6a376c20f6fb95284
1 /* $FreeBSD: src/sys/net/pfil.h,v 1.11.2.2 2005/01/31 23:26:23 imp Exp $ */
2 /* $NetBSD: pfil.h,v 1.22 2003/06/23 12:57:08 martin Exp $ */
4 /*-
5 * Copyright (c) 1996 Matthew R. Green
6 * Copyright (c) 2005 - 2006 Pavel Fedin
7 * All rights reserved.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
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 author may not be used to endorse or promote products
18 * derived from this software without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 * 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.
33 #ifndef _NET_PFIL_H_
34 #define _NET_PFIL_H_
36 #include <sys/systm.h>
37 #include <sys/queue.h>
40 * The packet filter hooks are designed for anything to call them to
41 * possibly intercept the packet.
43 extern struct MinList pfil_list;
44 extern struct SignalSemaphore pfil_list_lock;
46 struct packet_filter_hook {
47 struct MinNode pfil_link;
48 struct ifnet *pfil_if;
49 struct Hook *pfil_hook;
50 ULONG pfil_hooktype;
54 void pfil_init(void);
55 void pfil_run_hooks(struct mbuf *, struct ifnet *, unsigned char);
57 #endif /* _NET_PFIL_H_ */