Portability: POSIXize some of inet's error codes

This commit is contained in:
David van Moolenbroek
2009-11-28 13:18:33 +00:00
parent 709a739b52
commit c6cce1823d
13 changed files with 61 additions and 48 deletions
+3 -3
View File
@@ -346,10 +346,10 @@ int type;
ip_port->ip_dl.dl_eth.de_arp_tail= eth_pack;
return NW_OK;
}
if (r == EDSTNOTRCH)
if (r == EHOSTUNREACH)
{
bf_afree(eth_pack);
return EDSTNOTRCH;
return r;
}
assert(r == NW_OK);
}
@@ -599,7 +599,7 @@ ether_addr_t *eth_addr;
/* Dequeue the packet */
ip_port->ip_dl.dl_eth.de_arp_head= eth_pack->acc_ext_link;
if (r == EDSTNOTRCH)
if (r == EHOSTUNREACH)
{
bf_afree(eth_pack);
continue;