netdev
[Top] [All Lists]

Must every packet have a creating socket? (was Re: Does a forwarded pack

To: Neil Horman <nhorman@xxxxxxxxxx>
Subject: Must every packet have a creating socket? (was Re: Does a forwarded packet has a local socket with it?)
From: Park Lee <parklee_sel@xxxxxxxxx>
Date: Wed, 20 Apr 2005 10:29:43 -0700 (PDT)
Cc: jamal <hadi@xxxxxxxxxx>, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=jiobkB7VxlxnPE4DPZk2ZDB6n8Vw8QP6Q1Uyka128/n1+KDQILX0d0chX9+Ig/uCdpAXHfAZQE/lZ62WT0CEAXgYDQoKfXpDEw5l5uLMzId9GQrw2dK3NRqwOd/7jGSwDU3I4rjc3FofmhFIL0236Dbn8aAUu6Op1so/5sTThQk= ;
Sender: netdev-bounce@xxxxxxxxxxx
On Tue, 19 Apr 2005 at 08:26, Neil Horman wrote:
> Not sure what your asking here.  Asking "Does these 
> two sockets belong to local socket?" is a pretty 
> meaningless question, as the terminology is 
> nonsensical. All sockets have a protocol associated 
> with them (except raw sockets, but thats another 
> topic).  When you create a socket you associate it 
> with a protocol family (AF_INET, AF_INET6, 
> AF_NETLINK, AF_APPLETALK, etc), 
> a connection type (SOCK_STREAM for connection 
> oriented  protocols, SOCK_DGRAM for connection-less 
> protocols), and a protocol (IPPROTO_TCP, 
> IPPROTO_UDP, etc).  Depending on the family, type 
> and protocol you select, you can talk to different 
> systems/services.
>
> Does that answer your question?

Thanks a lot.

Can I think that every packet (e.g. IP packet) must
have a corresponding creating socket? (i.e. Must every
packet be created by a socket?) 
Is there any other way to originate a packet?

Thank you.

Best Regards,
Park Lee


                
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs

<Prev in Thread] Current Thread [Next in Thread>