|
Home > Archive > Unix Programming > August 2007 > raw socket question
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 |
raw socket question
|
|
| sinbad 2007-08-30, 1:19 am |
| Hi,
For delivering packets to a raw socket ,port id is not checked , why
is it so ... Instead of delivering the packet to all the protocols ,we
could have delivered to only an application owning the port ... anyone
shed some light on this .
cheers
sinbad
| |
| Rainer Temme 2007-08-30, 7:20 am |
| sinbad wrote:
> For delivering packets to a raw socket ,port id is not checked , why
> is it so ...
Because its a RAW socket. With a raw socket you can capture all sorts of
packets (not just tcp od udp). How would you apply port-information on
a icmp-packet, or an arp-packet, or a spx/ipx packet, or a bgp packet
and so on.
|
|
|
|
|