mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
Fix build in IPv4 only case when source based routing is disabled
This commit is contained in:
parent
def87c0c23
commit
de05424ff6
@ -516,6 +516,8 @@ udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip,
|
|||||||
struct netif *netif;
|
struct netif *netif;
|
||||||
const ip_addr_t *src_ip_route;
|
const ip_addr_t *src_ip_route;
|
||||||
|
|
||||||
|
LWIP_UNUSED_ARG(src_ip_route); /* IPv4 only and no source based routing */
|
||||||
|
|
||||||
if ((pcb == NULL) || (dst_ip == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) {
|
if ((pcb == NULL) || (dst_ip == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) {
|
||||||
return ERR_VAL;
|
return ERR_VAL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user