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: Simon Goldschmidt
Subject: [lwip-devel] [bug #26309] Implement SOF_BROADCAST
Date: Sun, 26 Apr 2009 17:59:33 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.0.9) Gecko/2009040820 Firefox/3.0.9

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

I do not really have a preference, but I also don't like to move away from
the standard just to prevent breaking older applications running on lwIP.

We should make one thing clear: are we talking about the socket API only (for
which these flags are) or about the raw API, too?

We could implement these send-limitation at socket-level. The
receive-limitation will have to go into the raw API.

However, how do we implement this with only one setsockopt flag if the
default should be "receive broadcast but don't send"? For your scenario, you
would have to turn of receiving broadcast, but since SOF_BROADCAST is *off* by
default, you cannot use that flag for it.

On the other hand, since there does not seem to be a standard option to turn
off receiving broadcast, maybe we should go the easiest way and let
SOF_BROADCAST influence RX *and* TX (but RX only when
LWIP_SO_BROADCAST_RECV==1) and let it default to *on*?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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