lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8358] Allow more combinations of listening PCB for


From: Joel Cunningham
Subject: [lwip-devel] [patch #8358] Allow more combinations of listening PCB for IPv6
Date: Wed, 11 Mar 2015 21:54:17 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0

Follow-up Comment #5, patch #8358 (project lwip):

There's a great explanation on Stack Overflow of the different behaviors of
SO_REUSEADDR and SO_REUSEPORT on different platforms:

http://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t

On a BSD system, SO_REUSEADDR does allow a socket bound to INADDR_ANY and a
socket bound to a specific IP address at the same time.  The order of the
socket binds doesn't matter.

On a Linux system, binding to INADDR_ANY first prevents a second bind to the
same port with a specific IP.  But if the order of the binds are reversed,
it's allowed.

The Linux behavior seems strange to me and I would guess we would want to
adhere to the BSD behavior (grandfather of sockets)

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8358>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]