Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Protocol Filters



Check the ubiquitous SharedIP NKE. It uses several filters.

The 'location' parameter allows you to specify that you want the filter to be inserted before or after a specific pre-existing filter. If that filter is 'NULL', 'before' means "at the beginning of the list" and 'after', well, should be obvious.

Note that NKE != filter. In the case of SharedIP, there are multiple filters in one NKE.

Regards,

Justin

On Sunday, Dec 15, 2002, at 19:52 US/Pacific, Ben Lachman wrote:

Does anyone know the process for installing multiple socket based protocol filters from one NKE? For instance, I would like to filter both TCP and UDP from a single extension. I noticed that register_socketfilter()'s definition in kext_net.h says a bit about insert location, but doesn't explain it at all:

/* How to register: filter, insert location, target protosw, flags */
extern int register_sockfilter(struct NFDescriptor *,
struct NFDescriptor *,
struct protosw *, int);


Any advice would be great!

->Ben

--
"If you drink, don't drive. Don't even putt." - Dean Martin
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Multiple Protocol Filters (From: Ben Lachman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.