 Re: Raw sockets
Re: Raw sockets How can I use RAW SOCKETS in UNIX?  (Rami)
  
   How can I use RAW SOCKETS in UNIX?  (Rami)
| To use RAW sockets in Unix it it mandatory that one be a root .
To create RAW socket just write: s=socket(AF_INET,SOCK_RAW,<protocol>).
Then you can do anything you want with it (sending, receiving).
However you have to perform all necessary operations, according to 
the protocol you use (create headers (IP+TCP(UDP,ICMP,...)) and
make all neccessary negotiations (TCP: SYN->ACK->....RST....ACK....). 
 |