Changeset 8e58f94 in mainline
- Timestamp:
- 2010-12-04T21:01:07Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bdcc45, bea023b9
- Parents:
- fc3dba14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip.c
rfc3dba14 r8e58f94 115 115 /** The IP localhost address. */ 116 116 #define IPV4_LOCALHOST_ADDRESS htonl((127 << 24) + 1) 117 118 /** How many times can arp_translate_req respond EAGAIN before IP gives up */119 #define ARP_EAGAIN_MAX_COUNT 10120 117 121 118 /** IP global data. */ … … 1011 1008 destination.length = CONVERT_SIZE(dest.s_addr, char, 1); 1012 1009 1013 /** Try calling translate several times, then give up */ 1014 int count = 0; 1015 do { 1016 rc = arp_translate_req(netif->arp->phone, 1017 netif->device_id, SERVICE_IP, &destination, 1018 &translation, &data); 1019 count++; 1020 } while (rc == EAGAIN && count <= ARP_EAGAIN_MAX_COUNT); 1010 rc = arp_translate_req(netif->arp->phone, netif->device_id, 1011 SERVICE_IP, &destination, &translation, &data); 1021 1012 if (rc != EOK) { 1022 1013 pq_release_remote(ip_globals.net_phone,
Note:
See TracChangeset
for help on using the changeset viewer.