Re: detecting new tcp connections

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

 




On Thu, Jun 13, 2002 at 05:37:53PM +0200, Andrew Rucker Jones wrote:
> Checking the source address, destination address, source port, and
> destination port will guaruntee that the connection is unique. TCP (and
> UDP, i think) include wait mechanisms that disallow reuse of an
> ephemeral source port too soon after being used. So, if You poll quickly
> enough (every second is plenty fast), You will never run into this
problem.

Servers use the SO_REUSEADDR option and that lets them re-bind to the same
port even though there are connections in TIME_WAIT state.


Regards,
Mohit Kalra

"It is a capital mistake to theorize before one has data.
Insensibly one begins to twist facts to suit theories, instead of theories
to suit facts."
-SH


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux