LwIP: Add in support for disabling IPv4 or IPv6

Note that TinyDTLS needs both IPv4 and IPv6 if DTLS is going to be used.
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-10-02 18:48:17 +01:00
1 parent 6cbf590785
commit 576b68e5db
6 files changed
+16 -14

No files matched your search

+2 -2
View File
@@ -311,10 +311,10 @@ coap_socket_send(coap_socket_t *sock, coap_session_t *session,
pbuf_free(pbuf);
if (err < 0) {
if (err == ERR_RTE) {
coap_log_warn("** %s: udp_send: Packet not routable\n",
coap_log_warn("** %s: udp_sendto: Packet not routable\n",
coap_session_str(session));
} else {
coap_log_warn("** %s: udp_send: error %d\n",
coap_log_warn("** %s: udp_sendto: error %d\n",
coap_session_str(session), err);
}
return -1;
+1 -1
View File
@@ -178,9 +178,9 @@ static uint32_t b_ipv4[COAP_BCST_CNT];
int
coap_is_bcast(const coap_address_t *a) {
#if COAP_IPV4_SUPPORT
int i;
coap_tick_t now;
#if COAP_IPV4_SUPPORT
const ip4_addr_t *ipv4;
#endif /* COAP_IPV4_SUPPORT */