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 75531 2001-04-15 19:53:47Z dd $
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
--- 18 unchanged lines hidden (view full) ---
54.Fn ip_input
55and
56.Fn ip_output
57routines. The
58.Fn pfil_hook_get
59function returns the first member of a particular hook, either the in or out
60list. The
61.Fn pfil_add_hook
62function takes a function of the form below as its first argument, and the
63flags for which lists to add the function to. The possible values for these
64flags are some combination of PFIL_IN and PFIL_OUT. The
65.Fn pfil_remove_hook
66removes a hook from the specified lists.
67.Pp
68The
69.Va func
70argument is a function with the following prototype.
--- 63 unchanged lines hidden ---
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 75531 2001-04-15 19:53:47Z dd $
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
--- 18 unchanged lines hidden (view full) ---
54.Fn ip_input
55and
56.Fn ip_output
57routines. The
58.Fn pfil_hook_get
59function returns the first member of a particular hook, either the in or out
60list. The
61.Fn pfil_add_hook
62function takes a function of the form below as its first argument, and the
63flags for which lists to add the function to. The possible values for these
64flags are some combination of PFIL_IN and PFIL_OUT. The
65.Fn pfil_remove_hook
66removes a hook from the specified lists.
67.Pp
68The
69.Va func
70argument is a function with the following prototype.
--- 63 unchanged lines hidden ---