Portability: POSIXize some of inet's error codes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user