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

Lines Matching refs:filter

36 	filter has been significantly reduced. The filter no longer has any
37 knowledge of socket buffers. The filter no longer intercepts nearly
39 filter, and an out filter. The in filter occurs before data is
41 the process unnecessarily. The out filter occurs before the data is
44 function that will be called when various events that the filter can
46 filter may use to intercept common operations. These functions are:
64 @constant SFLT_GLOBAL Indicates this socket filter should be
66 @constant SFLT_PROG Indicates this socket filter should be attached
69 @constant SFLT_EXTENDED Indicates that this socket filter utilizes
82 identify the socket filter to be attached.
88 @abstract Events notify a filter of state changes and other various
144 @discussion sf_unregistered_func is called to notify the filter it
147 function calls in to your filter have completed. Once this
149 @param handle The socket filter handle used to identify this filter.
156 @discussion sf_attach_func is called to notify the filter it has
157 been attached to a socket. The filter may allocate memory for
158 this attachment and use the cookie to track it. This filter is
160 1) You've installed a global filter and a new socket was created.
161 2) Your non-global socket filter is being attached using the SO_NKE
163 @param cookie Used to allow the socket filter to set the cookie for
165 @param so The socket the filter is being attached to.
166 @result If you return a non-zero value, your filter will not be
174 @discussion sf_detach_func is called to notify the filter it has
175 been detached from a socket. If the filter allocated any memory
178 @param cookie Cookie value specified when the filter attach was
180 @param so The socket the filter is attached to.
181 @result If you return a non-zero value, your filter will not be
189 @discussion sf_notify_func is called to notify the filter of various
191 @param cookie Cookie value specified when the filter attach was
193 @param so The socket the filter is attached to.
203 @discussion sf_getpeername_func is called to allow a filter to
209 @param cookie Cookie value specified when the filter attach was
211 @param so The socket the filter is attached to.
224 @discussion sf_getsockname_func is called to allow a filter to
230 @param cookie Cookie value specified when the filter attach was
232 @param so The socket the filter is attached to.
245 @discussion sf_data_in_func is called to filter incoming data. If your
246 filter intercepts data for later reinjection, it must queue all incoming
248 reinject this data if you return EJUSTRETURN. Warning: This filter is on
251 @param cookie Cookie value specified when the filter attach was
253 @param so The socket the filter is attached to.
274 @discussion sf_data_out_func is called to filter outbound data. If
275 your filter intercepts data for later reinjection, it must queue
279 @param cookie Cookie value specified when the filter attach was
281 @param so The socket the filter is attached to.
302 @discussion sf_connect_in_func is called to filter inbound connections. A
304 placing it on the queue of completed connections. Warning: This filter
307 @param cookie Cookie value specified when the filter attach was
309 @param so The socket the filter is attached to.
321 @discussion sf_connect_out_func is called to filter outbound
324 @param cookie Cookie value specified when the filter attach was
326 @param so The socket the filter is attached to.
340 @param cookie Cookie value specified when the filter attach was
342 @param so The socket the filter is attached to.
356 @param cookie Cookie value specified when the filter attach was
358 @param so The socket the filter is attached to.
372 @param cookie Cookie value specified when the filter attach was
374 @param so The socket the filter is attached to.
388 @param cookie Cookie value specified when the filter attach was
390 @param so The socket the filter is attached to.
406 @param cookie Cookie value specified when the filter attach was
408 @param so The socket the filter is attached to.
423 the file descriptor is associated with it. A filter can
426 the caller of accept. Such a filter may also choose to
428 @param cookie Cookie value specified when the filter attach was called.
443 Note that socket filter developers are advised to exercise
453 @discussion This structure is used to define a socket filter.
456 this filter should be attached when using the SO_NKE socket
458 @field sf_flags Indicate whether this filter should be attached to
459 all new sockets or just those that request the filter be
460 attached using the SO_NKE socket option. If this filter
461 utilizes the socket filter extension fields, it must also
465 filter has been unregistered.
482 @field sf_len Length of socket filter extension structure; developers
528 @discussion Registers a socket filter. See 'man 2 socket' for a
530 @param filter A structure describing the filter.
536 errno_t sflt_register(const struct sflt_filter *filter, int domain,
541 @discussion Unregisters a socket filter. This will not detach the
542 socket filter from all sockets it may be attached to at the
543 time, it will just prevent the socket filter from being attached
545 @param handle The sf_handle of the socket filter to unregister.
552 @discussion Attaches a socket filter to the specified socket. A
553 filter must be registered before it can be attached.
554 @param socket The socket the filter should be attached to.
555 @param handle The handle of the registered filter to be attached.
562 @discussion Detaches a socket filter from a specified socket.
563 @param socket The socket the filter should be detached from.
564 @param handle The handle of the registered filter to be detached.