The HyperNews Linux KHG Discussion Pages
Next-in-Thread Next Message Previous Message Next Thread

Feedback: Re: Raw sockets

Forum: The Linux Kernel Hackers' Guide
Re: How can I use RAW SOCKETS in UNIX? (Rami)
Date: Wed, 04 Jun 1997 13:15:33 GMT
From: <genie@risq.belcaf.minsk.by>

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....).

Next-in-Thread Next Message Previous Message Next Thread

to: "Re: Raw sockets"

Subscribe Membership Move/Remove Admin Mode Show Frames Help for HyperNews 1.9.4