Re: Must every packet have a creating socket? (was Re: Does a forwarded packet has a local socket with it?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 20 Apr 2005 at 18:20, Rick Jones wrote:
>> On Wed, 20 Apr 2005 at 10:29, Park Lee wrote:
>> 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?) 
>
> No.  ICMP messages come to mind - although I 
> _suppose_ that since those are in response to other 
> traffic, you could claim it was in response to 
> something sent from a "socket" or "endpoint" - 
> depends on how far away you consider it to still 
> be  from a socket.

    But as I know, The Linux network component creates
two special purpose sockets for use by the AF_INET
protocol family. The tcp socket is used to send resets
when a TCP packet is rejected, since there may be no
local socket corresponding to the packet. The icmp
socket is used to send ICMP messages.
    Then, ICMP echo replies are asociated with the
special kernel socket.
    So, I still think that every packet (e.g. IP
packet) must have a corresponding creating socket. 
    Am I right?

    Thank you.

Best Regards,
Park Lee


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux