Re: dlil_attah_interface_filter
Re: dlil_attah_interface_filter
- Subject: Re: dlil_attah_interface_filter
- From: Stephane Sudre <email@hidden>
- Date: Wed, 6 Apr 2005 17:55:33 +0200
On 2 avr. 05, at 23:45, Carl Smith wrote:
In my NKE I have attached some filtering using
'dlil_attach_interface_filter' and pointed my call back functions via
this call.
The filtering works find and in my call back function,
My_if_input(caddr_t cookie, struct ifnet **ifnet_ptr, struct mbuf
**mbuf_ptr), I want to get/look at the filter ID of the calling filter.
This is the value that was obtained in the previous calling to
'dlil_attach_interface_filter'.
Is there some way to obtain this 'filter ID' from within the callback
function My_if_input? I was thinking that the information might be
contained in the 'cookie' parameter. I need this 'filter ID' to use in
my call to dlil_inject_if_input.
If you did not set any cookie when you attached the filter, then the
cookie filter won't contain any piece of information AFAIK.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden