fixed bug #35531: Impossible to send multicast without a gateway (introduced when fixing bug# 33551)

This commit is contained in:
goldsimon 2012-02-16 12:30:52 +01:00
parent d0d650aa67
commit 5816bab6a2
2 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,10 @@ HISTORY
++ Bugfixes: ++ Bugfixes:
2012-02-16: Simon Goldschmidt
* etharp.c: fixed bug #35531: Impossible to send multicast without a gateway
(introduced when fixing bug# 33551)
2012-02-16: Simon Goldschmidt (patch by Stéphane Lesage) 2012-02-16: Simon Goldschmidt (patch by Stéphane Lesage)
* msg_in.c, msg_out.c: fixed bug #35536 SNMP: error too big response is malformed * msg_in.c, msg_out.c: fixed bug #35536 SNMP: error too big response is malformed

View File

@ -899,7 +899,7 @@ etharp_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr)
/* outside local network? if so, this can neither be a global broadcast nor /* outside local network? if so, this can neither be a global broadcast nor
a subnet broadcast. */ a subnet broadcast. */
if (!ip_addr_netcmp(ipaddr, &(netif->ip_addr), &(netif->netmask)) && if (!ip_addr_netcmp(ipaddr, &(netif->ip_addr), &(netif->netmask)) &&
!ip_addr_islinklocal(ipaddr)) { !ip_addr_islinklocal(ipaddr) && !ip_addr_ismulticast(ipaddr)) {
#if LWIP_AUTOIP #if LWIP_AUTOIP
struct ip_hdr *iphdr = (struct ip_hdr*)((u8_t*)q->payload + struct ip_hdr *iphdr = (struct ip_hdr*)((u8_t*)q->payload +
sizeof(struct eth_hdr)); sizeof(struct eth_hdr));