• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/net/

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
87 @discussion iff_output_func is used to filter fully formed outbound
89 filter call. If you need to keep a reference to the interface,
91 @param cookie The cookie specified when this filter was attached.
94 The frame header is already included. The filter function may
107 @discussion iff_event_func is used to filter interface specific
109 filter call. If you need to keep a reference to the interface,
111 @param cookie The cookie specified when this filter was attached.
121 @discussion iff_ioctl_func is used to filter ioctls sent to an
123 filter call. If you need to keep a reference to the interface,
129 @param cookie The cookie specified when this filter was attached.
134 0 - This filter function handled the ioctl.
135 EOPNOTSUPP - This filter function does not understand/did not handle this ioctl.
136 EJUSTRETURN - This filter function handled the ioctl, processing should stop.
145 @discussion iff_detached_func is called to notify the filter that it
147 the filter that will be made. A filter may be detached if the
148 interface is detached or the detach filter function is called.
149 In the case that the interface is being detached, your filter's
152 @param cookie The cookie specified when this filter was attached.
153 @param interface The interface this filter was detached from.
159 @discussion This structure is used to define an interface filter for
162 filter functions.
163 @field iff_name A filter name used for debugging purposes.
164 @field iff_protocol The protocol of the packets this filter is
166 will be passed to the filter.
167 @field iff_input The filter function to handle inbound packets, may
169 @field iff_output The filter function to handle outbound packets,
171 @field iff_event The filter function to handle interface events, may
173 @field iff_ioctl The filter function to handle interface ioctls, may
175 @field iff_detached The filter function used to notify the filter that
192 @discussion Attaches an interface filter to an interface.
193 @param interface The interface the filter should be attached to.
194 @param filter A structure defining the filter.
195 @param filter_ref A reference to the filter used to detach.
198 errno_t iflt_attach(ifnet_t interface, const struct iff_filter* filter,
203 @discussion Detaches an interface filter from an interface.
204 @param filter_ref The reference to the filter from iflt_attach.