Networking Forums

Networking Forums > Computer Networking > Linux Networking > raw socket question

Reply
Thread Tools Display Modes

raw socket question

 
 
sinbad
Guest
Posts: n/a

 
      08-29-2007, 03:45 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

 
Reply With Quote
 
 
 
 
slebetman@yahoo.com
Guest
Posts: n/a

 
      08-29-2007, 08:43 AM
On Aug 29, 11:45 am, sinbad <sinbad.sin...@gmail.com> wrote:
> 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 .
>


Port only makes sense for IP. Other protocols may or may not have a
concept of "port" and even if they do the "port" definition for a
protocol like AppleTalk or DECnet may not be compatible with the
concept of "port" in IP. Since the reason for using raw sockets in the
first place is to interface with protocols other than TCP/IP or UDP/IP
it doesn't make sense to check port id.

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket Question Trevor Benedict R Windows Networking 0 08-15-2007 12:24 AM
basic cat 5 socket question x-private Home Networking 4 05-03-2007 08:13 PM
A newbie socket programming question dnucit@gmail.com Linux Networking 0 07-11-2006 01:54 PM
Moving telephone socket question Carl Broadband 11 11-15-2003 10:06 PM
Need help! Raw ethernet socket question Michael Mueller Linux Networking 2 10-07-2003 11:18 AM



1 2 3 4 5 6 7 8 9 10 11