Re: dlil_inject_if_input
Re: dlil_inject_if_input
- Subject: Re: dlil_inject_if_input
- From: Justin Walker <email@hidden>
- Date: Thu, 7 Apr 2005 16:18:12 -0700
On Apr 7, 2005, at 15:54, Carl Smith wrote:
Ok this is driving me crazy, as you probable know from my other
messages
I am filtering packets at the DLIL interface layer, my problem is that
when ever I call dlil_inject_if_input my Mac crashes. Below is the code
in my interface filter input routine:
Int My_intr_filtr_input(caddr_t cookie, struct ifnet **ifnet_ptr,
struct
mbuf **m_orig, char **frame_ptr)
{
struct My_Attached_Filters *ifb = (struct
My_Attached_Filters *) cookie;
char *pHeader;
pHeader = *frame_ptr;
struct mbuf *m;
m = *m_orig;
u_int16_t etype = ntohs(*(u_int16_t*)&pHeader[12]);
Just a guess, but isn't pHeader supposed to be initialized before you
use it?
Cheers,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
"Weaseling out of things is what separates us from the animals.
Well, except the weasel."
- Homer J Simpson
--------
_______________________________________________
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