• 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 16:18:12 -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. 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:
This email sent to email@hidden


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

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