Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: (please correct me if i'm wrong) Re: TCP and/or IP options example code or docs

From: Darren <darren(at)obtuse.net>
Date: Thu Jun 26 2003 - 14:10:18 EDT


Well, actually I'm aware of how the packet header is formatted to include TCP options, I'm just unfamilar with how the options themselves are formatted to be used with the libnet_build_tcp_options() function. I'm just not sure the actual format of the options string and how each option is separated.

Some examples with explainations would be great. :)

Thanks,

Darren

-----Original Message-----
From: sandr8 [mailto:a.salvatori@universitari.crocetta.org] Sent: Wednesday, June 25, 2003 5:22 PM
To: libnet@securityfocus.com
Subject: (please correct me if i'm wrong) Re: TCP and/or IP options example code or docs

the only difficult thing should be that... how can i say... let me make a little drawing...

+---------+

                                         | payload |

+---------+
+-------------+---------+ | tcp options | payload | +-------------+---------+ +-------------------------+-------------+---------+
 | TCP header (fixed part) | tcp options | payload |
+-------------------------+-------------+---------+

to do this the simpler way is to...

Do you need help?X

   libnet_build_tcp_options()
   libnet_build_tcp() <---------- here you use the payload

and between the TCP (fixed part of the) header and the payload there will appear the options... the tcp header will have the correct data offset value. :)

please correct me if i am wrong
i've prepared some powerpoint slides that amongst different things also speak about this thing... hope i'm right ;) sorry they are in Italian but graphics and source code are in english as well as soon as i've done them all i'll send a link to Mike they are no good documentation since they are in .ppt but hope that may help building the new documentation cheers
sandr8)

On Wed, 25 Jun 2003 08:21:02 -0400
"Darren" <darren@obtuse.net> wrote:

> Let me make myself a little bit more clear. The subject and body are a

> little vague. I'm looking for example code and docuementation for 
> building IP options and/or TCP options with the libnet builder 
> functions. I've seen the tcp1.c and udp1.c but they're not exactly 
> well documented.
> 
> 
> 
> -----Original Message-----
> From: Darren [mailto:darren@obtuse.net]
> Sent: Tuesday, June 24, 2003 7:06 PM
> To: libnet@securityfocus.com
> Subject: TCP/IP options example code or docs
> 
> 
> Hello again,
> 
> Is anyone here aware of any good example code (other than the little 
> bit in the libnet/samples dir) for libnet 1.1+? Or maybe some good 
> documentation on how to format and separate the options?
> 
> Any help would be *greatly* appreciated.
> 
> 
> Thanks,
> 
> Darren
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
> For additional commands, e-mail: libnet-help@securityfocus.com
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
> For additional commands, e-mail: libnet-help@securityfocus.com
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com For additional commands, e-mail: libnet-help@securityfocus.com

To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com For additional commands, e-mail: libnet-help@securityfocus.com Received on Thu Jun 26 14:35:34 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library