site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AcU7yBdHqfz3n4z2TGi2I4M23Dgu0AAAdmRAAABFjnA= 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=fortresstech.com@lists.apple.com [mailto:darwin-kernel-bounces+csmith=fortresstech.com@lists.apple.com] 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/csmith%40fortresste ch.com This email sent to csmith@fortresstech.com _______________________________________________ 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... This email sent to site_archiver@lists.apple.com