Id like to know how to create a custom TCP packet using C. Could u
plz point me to the right direction. Im pretty confused as to wht to search
on the net. Id found something about spoofing. What exactly id like to know
is when i create a socket program, the tcp headers are generated by the
kernel right? So how do u set the options etc on it. Hope to get a reply
ASAP, coz im tied with a project and ive run into a wall..
Regards
Arun
> Hi,
>
> Id like to know how to create a custom TCP packet using C. Could u
See the chapter on "Raw Sockets" in "Unix Network Programming, Vol.1" by
W. Richard Stevens.
> plz point me to the right direction. Im pretty confused as to wht to search
> on the net. Id found something about spoofing. What exactly id like to know
> is when i create a socket program, the tcp headers are generated by the
> kernel right? So how do u set the options etc on it. Hope to get a reply
> ASAP, coz im tied with a project and ive run into a wall..
If you're not using raw sockets, you use setsockopt() to set the options
that the standard sockets API supports.
--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
The info u'd provided was very helpful :-)
Regards
Arun
"Barry Margolin" <bar...@alum.mit.edu> wrote in message
news:barmar-A2BE03....@comcast.ash.giganews.com...