Added yet another IP-address-modifying define, ip_addr_set_any()

This commit is contained in:
goldsimon
2010-02-08 17:24:08 +00:00
parent b3caddab30
commit 90bed0c5ac
4 changed files with 8 additions and 6 deletions

View File

@@ -1442,7 +1442,7 @@ void snmp_insert_iprteidx_tree(u8_t dflt, struct netif *ni)
if (dflt != 0)
{
/* the default route 0.0.0.0 */
ip_addr_set(&dst, &ip_addr_any);
ip_addr_set_any(&dst);
insert = 1;
}
else
@@ -1519,7 +1519,7 @@ void snmp_delete_iprteidx_tree(u8_t dflt, struct netif *ni)
if (dflt != 0)
{
/* the default route 0.0.0.0 */
ip_addr_set(&dst, &ip_addr_any);
ip_addr_set_any(&dst);
del = 1;
}
else