Lines Matching refs:filter
62 @discussion ipf_input_func is used to filter incoming ip packets.
63 The IP filter is called for packets from all interfaces. The
64 filter is called between when the general IP processing is
67 as UDP in ESP (IPSec), your filter will be called once for ESP
68 and then again for UDP. This will give your filter an
74 @param cookie The cookie specified when your filter was attached.
90 @discussion ipf_output_func is used to filter outbound ip packets.
91 The IP filter is called for packets to all interfaces. The
92 filter is called before fragmentation and IPSec processing. If
95 @param cookie The cookie specified when your filter was attached.
108 @discussion ipf_detach_func is called to notify your filter that it
110 @param cookie The cookie specified when your filter was attached.
116 @discussion This structure is used to define an IP filter for
119 filter functions.
120 @field name A filter name used for debugging purposes.
121 @field ipf_input The filter function to handle inbound packets.
122 @field ipf_output The filter function to handle outbound packets.
123 @field ipf_detach The filter function to notify of a detach.
138 @discussion Attaches an IPv4 ip filter.
139 @param filter A structure defining the filter.
140 @param filter_ref A reference to the filter used to detach it.
143 errno_t ipf_addv4(const struct ipf_filter* filter, ipfilter_t *filter_ref);
147 @discussion Attaches an IPv6 ip filter.
148 @param filter A structure defining the filter.
149 @param filter_ref A reference to the filter used to detach it.
152 errno_t ipf_addv6(const struct ipf_filter* filter, ipfilter_t *filter_ref);
156 @discussion Detaches an IPv4 or IPv6 filter.
157 @param filter_ref The reference to the filter returned from ipf_addv4 or
167 by the filter's ipf_input function, an IP filter can pass its
169 prevents ip filters installed before this filter from
170 getting a chance to process the packet. If the filter modified
171 the packet, it should not specify the filter ref to give other
178 @param filter_ref The reference to the filter injecting the data
187 filter's ipf_output function, an IP filter can pass its
189 prevents ip filters installed before this filter from getting a
190 chance to process the packet. If the filter modified the packet,
191 it should not specify the filter ref to give other filters a
194 @param filter_ref The reference to the filter injecting the data