lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #26309] Implement SOF_BROADCAST


From: Stephane Lesage
Subject: [lwip-devel] [bug #26309] Implement SOF_BROADCAST
Date: Sun, 26 Apr 2009 14:51:25 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Follow-up Comment #16, bug #26309 (project lwip):

> Isn't that a bit unportable: your socket would get unusable if > the
interface address changed... 

yes, I agree, it's not very handy.

>However, the opengroup documentation seems to say the contrary >of what's
implemented in linux and windows. I really don't know >what's the best thing
to do here, but normally I'd vote for the >opengroup definition...

I browsed the FreeBSD sources, and only sending is implemented.
If you google on this subject, it seems that things are very unclear about
broadcast reception, including on win32. It seems to depend on windows
versions.
The MSDN lib also mentions a IP_RECEIVE_BROADCAST option:
http://msdn.microsoft.com/en-us/library/ms738586(VS.85).aspx
On this page, they talk only about sending:
http://msdn.microsoft.com/en-us/library/ms740532(VS.85).aspx

>LWIP_SO_BROADCAST for the send operations, and >LWIP_SO_BROADCAST_RECV for
the recv operations.
>Both disabled as default values to get a source code >compatibility with
current behavior. 
>Like this, each one could choose. About binding on only one >interface, I
share Simon's point of view. 

Seems fine to me.

We could also implement IP_RECEIVE_BROADCAST... but it's windows specific, so
I have the feeling you won't agree ;-)


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?26309>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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