pfil.9 (88509) | pfil.9 (89124) |
---|---|
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 88509 2001-12-26 23:14:04Z davidc $ | 27.\" $FreeBSD: head/share/man/man9/pfil.9 89124 2002-01-09 11:43:48Z mpp $ |
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 --- 51 unchanged lines hidden (view full) --- 87and 88.Va m 89arguments describe the network interface and the mbuf holding data for this 90packet. The 91.Va dir 92is the direction; 0 for incoming packets and 1 for outgoing packets. if the function 93returns non-zero, this signals an error and no further processing of this packet is 94performed. The function should set errno to indicate the nature of the error. | 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 --- 51 unchanged lines hidden (view full) --- 87and 88.Va m 89arguments describe the network interface and the mbuf holding data for this 90packet. The 91.Va dir 92is the direction; 0 for incoming packets and 1 for outgoing packets. if the function 93returns non-zero, this signals an error and no further processing of this packet is 94performed. The function should set errno to indicate the nature of the error. |
95It is the hook's responsibiliy to free the chain if the packet is being dropped. | 95It is the hook's responsibility to free the chain if the packet is being dropped. |
96.Pp 97The 98.Nm 99interface is enabled in the kernel via the 100.Sy PFIL_HOOKS 101option. 102.Sh RETURN VALUES 103If successful --- 39 unchanged lines hidden --- | 96.Pp 97The 98.Nm 99interface is enabled in the kernel via the 100.Sy PFIL_HOOKS 101option. 102.Sh RETURN VALUES 103If successful --- 39 unchanged lines hidden --- |