enetlognke and KEXT questions
enetlognke and KEXT questions
- Subject: enetlognke and KEXT questions
- From: Allan Hoeltje <email@hidden>
- Date: Fri, 01 Jul 2005 17:27:06 -0700
First off, thank you Quinn and Josh for the pointers you have given me so
far.
Second, I need some more pointers!
I have been testing the enetlognke interface filter sample and mundged it
into what I hope is the beginning of an IP filter.
The problem I am running into is that the mbuf_t data passed to my
ipf_input_func (and ipf_output_func) always has a NULL mbuf_pkthdr_header.
For enetlognke this is OK since the interface filter enet_input_func is
passed a reference to a frame header. There is even a comment that says:
"Before we swallow the packet, we need to make sure that the very first mbuf
has the pkthdr_header field set, else the system will panic when we inject
the packet. The input routine is passed the frame_header pointer, so we can
use this value to set as the pkthdr_header."
Is there some api I can use to get the frame header in my ipf_input_func?
Does any of this matter for an IP filter?
Sorry if this is a dumb question but there is very little documentation and
even less sample code for mbufs and kernel extensions.
Help!
-Allan
(Everybody starts out as a newbie and it is only through trial, error, and
good documentation do they become experts. - ALH)
_______________________________________________
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