netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Must every packet have a creating socket? (was Re: Does a forwarded packet has a local socket with it?)
@ 2005-04-20 17:29 Park Lee
  2005-04-21  1:20 ` Rick Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Park Lee @ 2005-04-20 17:29 UTC (permalink / raw)
  To: Neil Horman; +Cc: jamal, linux-net, netdev

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-22 11:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20 17:29 Must every packet have a creating socket? (was Re: Does a forwarded packet has a local socket with it?) Park Lee
2005-04-21  1:20 ` Rick Jones
2005-04-22 11:39   ` Must every packet have a creating socket? Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).