Lines Matching refs:filter

49 	@discussion iff_input_func is used to filter incoming packets. The
50 interface is only valid for the duration of the filter call. If
53 inbound filter are different from those passed to the outbound
54 filter. Packets to the inbound filter have the frame header
66 @param cookie The cookie specified when this filter was attached.
69 protocol when attaching your filter, the protocol will only ever
90 @discussion iff_output_func is used to filter fully formed outbound
92 filter call. If you need to keep a reference to the interface,
94 @param cookie The cookie specified when this filter was attached.
97 The frame header is already included. The filter function may
113 @discussion iff_event_func is used to filter interface specific
115 filter call. If you need to keep a reference to the interface,
117 @param cookie The cookie specified when this filter was attached.
127 @discussion iff_ioctl_func is used to filter ioctls sent to an
129 filter call. If you need to keep a reference to the interface,
135 @param cookie The cookie specified when this filter was attached.
140 0 - This filter function handled the ioctl.
141 EOPNOTSUPP - This filter function does not understand/did not
143 EJUSTRETURN - This filter function handled the ioctl,
154 @discussion iff_detached_func is called to notify the filter that it
156 the filter that will be made. A filter may be detached if the
157 interface is detached or the detach filter function is called.
158 In the case that the interface is being detached, your filter's
161 @param cookie The cookie specified when this filter was attached.
162 @param interface The interface this filter was detached from.
168 @discussion This structure is used to define an interface filter for
171 filter functions.
172 @field iff_name A filter name used for debugging purposes.
173 @field iff_protocol The protocol of the packets this filter is
175 will be passed to the filter.
176 @field iff_input The filter function to handle inbound packets, may
178 @field iff_output The filter function to handle outbound packets,
180 @field iff_event The filter function to handle interface events, may
182 @field iff_ioctl The filter function to handle interface ioctls, may
184 @field iff_detached The filter function used to notify the filter that
201 @discussion Attaches an interface filter to an interface.
202 @param interface The interface the filter should be attached to.
203 @param filter A structure defining the filter.
204 @param filter_ref A reference to the filter used to detach.
207 extern errno_t iflt_attach(ifnet_t interface, const struct iff_filter *filter,
212 @discussion Detaches an interface filter from an interface.
213 @param filter_ref The reference to the filter from iflt_attach.