Re: dlil_inject_if_input cause crashes
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Matt On Sep 22, 2004, at 3:21 PM, Matt Jaffa wrote: Matt On Sep 22, 2004, at 3:04 PM, Joshua Graessley wrote: Are you setting the receive interface (m_pkthdr.rcvif) correctly? -josh On Sep 22, 2004, at 12:27 PM, Matt Jaffa wrote: Hi, More on my recent problems with dlil_inject_if_input. Matt This email sent to matt@knowligent.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... Got it, getting new results with netstat -s , and the computer isn't crashing, since I added the ifnet_ptr to the mbuf, m_pkthdr.rcvif. Thanks a bunch for that suggestion I was thinking that the rcvif was set by one of the functions in between dlil_inject_if_input and ip_input, but I guess I had to set it. I did not know that I was supposed to do that to the mbuf that I created. How would I go about that? I have my computer now doing a core dump to a remote server, and I did a back trace on the core dump. It is crashing here: (gdb) bt #0 0x0011076c in ip_input (m=0x1d571a00) at /SourceCache/xnu/xnu-517.7.21/bsd/netinet/ip_input.c:454 #1 0x00110634 in ip_input (m=0x1d571a00) at /SourceCache/xnu/xnu-517.7.21/bsd/netinet/ip_input.c:411 #2 0x0011115c in ipintr () at /SourceCache/xnu/xnu-517.7.21/bsd/netinet/ip_input.c:967 #3 0x000ff6fc in run_netisr () at /SourceCache/xnu/xnu-517.7.21/bsd/net/netisr.c:79 #4 0x000f1d54 in dlil_input_thread_continue () at /SourceCache/xnu/xnu-517.7.21/bsd/net/dlil.c:568 (gdb) That is great that I know where it was at when it was crashing, but it seems to be crashing due to something in ip_input.c on line 454, I checked the line out, but don't know why it would crash at that line. Any help on figuring this out would be appreciated. See my previous posts with dlil_inject_if_input for my code. Is this a bug now? _______________________________________________ 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/ jgraessley%40apple.com This email sent to jgraessley@apple.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/ matt%40knowligent.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Jaffa