site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... If you did not set any cookie when you attached the filter, then the cookie filter won't contain any piece of information AFAIK. This email sent to site_archiver@lists.apple.com