Raw sockets can't be used to read a packets whose protocol is processed by the
kernel.
in other words
Raw sockets are used to generate/receive packets of a type that the kernel
doesn't explicitly support.
you need root permissions to use raw sockets.
to use raw sockets you say SOCK_RAW
packet sockets are those sockets which unix/linux can understand.
Unix Network Programming volume 1 2nd edition by W. Richard Stevens, chapter 25
is about using raw socket
-gaurav.
Amit Limaye wrote:
> what is the difference between linux packet sockets
> and raw sockets .as to the changes that will be needed
> in the program when i change the socket type from
> packet socket to raw socket
>
--
_
|^|^| -^- Love to Linux
\-/ G A U R A V |
mailto:[EMAIL PROTECTED] / mailto:[EMAIL PROTECTED]
| Sea/She is nature's art/\/ Everybody likes to get the feel of it
|-=-----------------------/-----------------------------------------|
|_|f I can I m a g i n/e it I can A c h i e v e it_._.-.-._.|
--------------------------------------------------------------------------
LI is all for free speech, but this list was created for a purpose --
to help popularise Linux in India. If your messages are counterproductive
to that purpose, your privileges to submit messages can and will be revoked.