• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dlil_inject_if_input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlil_inject_if_input


  • Subject: Re: dlil_inject_if_input
  • From: Justin Walker <email@hidden>
  • Date: Thu, 7 Apr 2005 19:34:48 -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.

You can, of course, use gdb to figure out where in the code the crash occurs:
- use 2-machine debugging to catch the varmint in the act;
- if you get a panic, the values printed either in the panic log
or to the screen can be handed to gdb to get a stack trace.


Then, you can track backwards with code in hand to figure out what is going wrong.

Of course every thing runs fine if I comment out the
dlil_inject_if_input function call and the *m_orig = NULL; line. I have
tried adjusting to where m->m_data points, like m->m_data - 14,

No, 'inject' takes the args as is.

get a crash. The documentation is pretty thin in this area, so any help
or suggestions would greatly be appreciated.

I think you will have to use gdb, or some really creative syslogs.

Yes I have checked to make sure that pHeader and ifb->nfliter_id are
pointer or contain the correct information.

Huh?

Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
Some people have a mental horizon of radius zero, and
call it their point of view.
  -- David Hilbert
--------

_______________________________________________
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


References: 
 >dlil_inject_if_input (From: "Carl Smith" <email@hidden>)

  • Prev by Date: Re: dlil_inject_if_input
  • Next by Date: Remote debugging connection fails
  • Previous by thread: Re: dlil_inject_if_input
  • Next by thread: FW: dlil_inject_if_input
  • Index(es):
    • Date
    • Thread