[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #26309] Implement SOF_BROADCAST
From: |
Frédéric Bernon |
Subject: |
[lwip-devel] [bug #26309] Implement SOF_BROADCAST |
Date: |
Fri, 24 Apr 2009 10:10:48 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729) |
Follow-up Comment #12, bug #26309 (project lwip):
For send operations, changes are :
in udp_sendto_if (at the begining):
/* broadcast filter? */
if ( ((pcb->so_options & SOF_BROADCAST) == 0) &&
ip_addr_isbroadcast(dst_ip, netif) ) {
LWIP_DEBUGF(UDP_DEBUG | 1, ("udp_sendto_if: SOF_BROADCAST not enabled on
pcb %pn", (void *)pcb));
return ERR_VAL;
}
in raw_sendto, after the ip_route checking:
/* broadcast filter? */
if ( ((pcb->so_options & SOF_BROADCAST) == 0) &&
ip_addr_isbroadcast(ipaddr, netif) ) {
LWIP_DEBUGF(RAW_DEBUG | 1, ("raw_sendto: SOF_BROADCAST not enabled on pcb
%pn", (void *)pcb));
/* free any temporary header pbuf allocated by pbuf_header() */
if (q != p) {
pbuf_free(q);
}
return ERR_VAL;
}
Next, some udp clients need to add pcb->so_options|=SOF_BROADCAST; after
udp_new : there is dhcp.c, and netbios.c
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26309>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, (continued)
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/23
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Kieran Mansley, 2009/04/23
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/23
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Kieran Mansley, 2009/04/23
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Simon Goldschmidt, 2009/04/23
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/23
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/23
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Simon Goldschmidt, 2009/04/24
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Kieran Mansley, 2009/04/24
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/24
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST,
Frédéric Bernon <=
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/24
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Simon Goldschmidt, 2009/04/26
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/26
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Stephane Lesage, 2009/04/26
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/26
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Simon Goldschmidt, 2009/04/26
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/26
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Simon Goldschmidt, 2009/04/26
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Frédéric Bernon, 2009/04/29
- [lwip-devel] [bug #26309] Implement SOF_BROADCAST, Kieran Mansley, 2009/04/29