Lines Matching refs:interface

30 	This header defines an API to attach interface filters. Interface
31 filters may be attached to a specific interface. The filters can
32 intercept all packets in to and out of the specific interface. In
33 addition, the filters may intercept interface specific events and
50 interface is only valid for the duration of the filter call. If
51 you need to keep a reference to the interface, be sure to call
67 @param interface The interface the packet was recieved on.
72 by the interface.
74 frame header length can be found by inspecting the interface's
84 typedef errno_t (*iff_input_func)(void *cookie, ifnet_t interface,
91 packets. The interface is only valid for the duration of the
92 filter call. If you need to keep a reference to the interface,
95 @param interface The interface the packet is being transmitted on.
107 typedef errno_t (*iff_output_func)(void *cookie, ifnet_t interface,
113 @discussion iff_event_func is used to filter interface specific
114 events. The interface is only valid for the duration of the
115 filter call. If you need to keep a reference to the interface,
118 @param interface The interface the packet is being transmitted on.
121 typedef void (*iff_event_func)(void *cookie, ifnet_t interface,
128 interface. The interface is only valid for the duration of the
129 filter call. If you need to keep a reference to the interface,
136 @param interface The interface the packet is being transmitted on.
148 typedef errno_t (*iff_ioctl_func)(void *cookie, ifnet_t interface,
155 has been detached from an interface. This is the last call to
157 interface is detached or the detach filter function is called.
158 In the case that the interface is being detached, your filter's
159 event function will be called with the interface detaching event
162 @param interface The interface this filter was detached from.
164 typedef void (*iff_detached_func)(void *cookie, ifnet_t interface);
168 @discussion This structure is used to define an interface filter for
180 @field iff_event The filter function to handle interface events, may
182 @field iff_ioctl The filter function to handle interface ioctls, may
201 @discussion Attaches an interface filter to an interface.
202 @param interface The interface the filter should be attached to.
207 extern errno_t iflt_attach(ifnet_t interface, const struct iff_filter *filter,
212 @discussion Detaches an interface filter from an interface.