Implement UDP dual-stack PCB support

Create special IP address type "IPADDR_TYPE_ANY" for it.
SNMP uses new feature in non-netconn mode.

TODO: Same for TCP & RAW, adapt NETCONN to use this feature
This commit is contained in:
Dirk Ziegelmeier
2016-02-24 22:33:05 +01:00
parent 1dde3d6e56
commit 953b7bdd59
8 changed files with 62 additions and 35 deletions

View File

@@ -131,7 +131,7 @@ ppp_pcb *pppol2tp_create(struct netif *pppif,
#if LWIP_IPV6
if (IP_IS_V6_VAL(*ipaddr)) {
udp = udp_new_ip6();
udp = udp_new_ip_type(IPADDR_TYPE_V6);
} else
#endif /* LWIP_IPV6 */
udp = udp_new();