Deleted Added
full compact
pfil.9 (84306) pfil.9 (88509)
1.\" Copyright (c) 1996 Matthew R. Green
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
1.\" Copyright (c) 1996 Matthew R. Green
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD: head/share/man/man9/pfil.9 84306 2001-10-01 16:09:29Z ru $
27.\" $FreeBSD: head/share/man/man9/pfil.9 88509 2001-12-26 23:14:04Z davidc $
28.Dd August 4, 1996
29.Dt PFIL 9
30.Os
31.Sh NAME
32.Nm pfil ,
33.Nm pfil_hook_get ,
34.Nm pfil_add_hook ,
35.Nm pfil_remove_hook
36.Nd packet filter interface
37.Sh SYNOPSIS
38.In sys/param.h
39.In sys/mbuf.h
28.Dd August 4, 1996
29.Dt PFIL 9
30.Os
31.Sh NAME
32.Nm pfil ,
33.Nm pfil_hook_get ,
34.Nm pfil_add_hook ,
35.Nm pfil_remove_hook
36.Nd packet filter interface
37.Sh SYNOPSIS
38.In sys/param.h
39.In sys/mbuf.h
40.In sys/socket.h
40.In net/if.h
41.In net/pfil.h
42.Ft struct packet_filter_hook *
41.In net/if.h
42.In net/pfil.h
43.Ft struct packet_filter_hook *
43.Fn pfil_hook_get "int" "struct pfil_head *"
44.Ft void
45.Fn pfil_add_hook "int (*func)()" "int flags" "struct pfil_head *"
46.Ft void
47.Fn pfil_remove_hook "int (*func)()" "int flags" "struct pfil_head *"
44.Fn pfil_hook_get "int flag" "struct pfil_head *ph"
45.Ft int
46.Fo pfil_add_hook
47.Fa "int (*func)(void *, int, struct ifnet *, int, struct mbuf **)"
48.Fa "int flags"
49.Fa "struct pfil_head *ph"
50.Fc
51.Ft int
52.Fo pfil_remove_hook
53.Fa "int (*func)(void *, int, struct ifnet *, int, struct mbuf **)"
54.Fa "int flags"
55.Fa "struct pfil_head *ph"
56.Fc
48.\"(void *, int, struct ifnet *, int, struct mbuf **)
49.Sh DESCRIPTION
50The
51.Nm
52interface allows a function to be called on every incoming or outgoing
53packets. The hooks for these are embedded in the
54.Fn ip_input
55and

--- 78 unchanged lines hidden ---
57.\"(void *, int, struct ifnet *, int, struct mbuf **)
58.Sh DESCRIPTION
59The
60.Nm
61interface allows a function to be called on every incoming or outgoing
62packets. The hooks for these are embedded in the
63.Fn ip_input
64and

--- 78 unchanged lines hidden ---