[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #6995] Implement SO_REUSEADDR
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [task #6995] Implement SO_REUSEADDR |
Date: |
Thu, 29 Nov 2007 01:44:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060513 Fedora/1.0.8-1.1.fc3.1.legacy Firefox/1.0.8 |
Follow-up Comment #6, task #6995 (project lwip):
You should be able to bind to 255.255.255.255 - it is meant to have the same
meaning as INADDR_ANY. From the ip(7) manpage on linux:
-=-=-=-=-=-=-=-
There are several special addresses: INADDR_LOOPBACK (127.0.0.1)
always refers to the local host via the
loopback device; INADDR_ANY (0.0.0.0) means any address for binding;
INADDR_BROADCAST (255.255.255.255)
means any host and has the same effect on bind as INADDR_ANY for
historical reasons.
-=-=-=-=-=-=-=-
In order to send/receive broadcast datagrams, instead in POSIX the
SO_BROADCAST flag is used:
http://www.opengroup.org/pubs/online/7908799/xns/setsockopt.html
Although that link only says "transmission" and my Linux man page says: "When
enabled, datagram sockets receive packets sent to a broadcast address and they
are allowed to send packets to a broadcast address."
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?6995>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/