For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2006 > Re: sending a packet using raw socket









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: sending a packet using raw socket
manu

2006-03-26, 10:00 pm


thank u guys...
thank u soo much for the info.

Now i am confirmed tat I can build my own structure and hand it to IP
layer using raw sockets.
now i am trying to write various structures and convert it to strings
for sendto..

My question is..
for handling ICMP packets, the structure is defined in ip_icmp.h, but
for OSPF no header file is defined.
so we need to define our own structure and fill in the header..
so , are we allowed to build any structure with any members on it?
how does the IP layer know if the structure is valid?
is there any specific headers(OSPF) which has to be mandatorily
filled?

please do reply..
i am ignorant..
Manu

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com