FW: dlil_inject_if_input
FW: dlil_inject_if_input
- Subject: FW: dlil_inject_if_input
- From: "Carl Smith" <email@hidden>
- Date: Thu, 7 Apr 2005 19:39:37 -0400
- Thread-topic: dlil_inject_if_input
Is it not being initialized in the line ' pHeader = *frame_ptr;'? This
is just an assignment of the data being passed in from the filter
routine.
Carl
-----Original Message-----
From: darwin-kernel-bounces+csmith=email@hidden
[mailto:darwin-kernel-bounces+csmith=email@hidden]
On Behalf Of Justin Walker
Sent: Thursday, April 07, 2005 7:18 PM
To: darwin-kernel Dev
Subject: Re: dlil_inject_if_input
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:
ch.com
This email sent to email@hidden
_______________________________________________
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