lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Set IP address as none


From: Giuseppe Modugno
Subject: [lwip-users] Set IP address as none
Date: Tue, 13 Mar 2018 16:21:23 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

I have ip4_addr_t and I want to set it to a "null"/invalid value. Is it better to use IPADDR_NONE or IPADDR_ANY?

At first, I thought IPADDR_NONE was the best choice, but I found that dns.c uses IPADDR_ANY to flag a DNS server as invalid.

Moreover, there are ip4_addr_isany() and ip4_addr_set_any() macros, while there aren't ip4_addr_isnone() and ip4_addr_set_none().







reply via email to

[Prev in Thread] Current Thread [Next in Thread]