• 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: Fri, 17 Sep 2004 19:41:09 -0700


On Sep 17, 2004, at 18:40, Matt Jaffa wrote:

Hi,

It seems that when I do netstat -s, I am noticing that when I try to go to a blocked site and it trys to inject my packet it increments the
bad version number in the ip section.

Ha! Nothing like good stats to point the way.

But I am properly putting in the right version number in my tcp header.

As Sherlock might say, "When you have eliminated the impossible, what remains is ...". I have to believe that you are not formatting your injected packet correctly. Perhaps if you logged the hex values of the IP header before injecting it, you could verify what is happening...


Could having a bad version number for the ip header cause it to be discarded, and why is it not accepting the value,

The point of the version number is to accomodate multiple versions of the IP header. If the system (stack) doesn't recognize the version, it can't decode the header, so it dumps it.


One way I could see this happening is if it is incorrectly matching up the right bytes to my header.

I think you should consider this as "you are incorrectly formatting the appropriate bytes of the header". I believe that you are better served by assuming that, when plugging your new code into code that has been working without a problem for a long time, the likelihood is that your code is in error. It's possible that there is a bug in the system, but that's not the way to bet.


Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large  *
Institute for General Semantics        |   If you're not confused,
                                       |   You're not paying attention
*--------------------------------------*-------------------------------*

_______________________________________________
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


  • Follow-Ups:
    • Re: dlil_inject_if_input
      • From: Matt Jaffa <email@hidden>
References: 
 >dlil_inject_if_input (From: "Matthew Jaffa" <email@hidden>)
 >Re: dlil_inject_if_input (From: Justin Walker <email@hidden>)
 >Re: dlil_inject_if_input (From: Matt Jaffa <email@hidden>)
 >Re: dlil_inject_if_input (From: Justin Walker <email@hidden>)
 >Re: dlil_inject_if_input (From: Matt Jaffa <email@hidden>)

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