site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 7, 2005, at 15:54, Carl Smith wrote: struct mbuf *m; m = *m_orig; 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/site_archiver%40lists.a... 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; 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin Walker