pfil.9 (d0353b836e88609b9400851d32e0aa6645ff9be3) pfil.9 (5e75e35cca2eb446c514ea7c13a6be832fc8602a)
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.

--- 45 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
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.

--- 45 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 it's first argument, and the
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 ---
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 ---