Changeset 8e58f94 in mainline for uspace/srv/net/il/ip/ip.c


Ignore:
Timestamp:
2010-12-04T21:01:07Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7bdcc45, bea023b9
Parents:
fc3dba14
Message:

No need to retry arp_translate_req() as ARP will use a timed wait for the
reply containing the translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/ip/ip.c

    rfc3dba14 r8e58f94  
    115115/** The IP localhost address. */
    116116#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 10
    120117
    121118/** IP global data. */
     
    10111008                destination.length = CONVERT_SIZE(dest.s_addr, char, 1);
    10121009
    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);
    10211012                if (rc != EOK) {
    10221013                        pq_release_remote(ip_globals.net_phone,
Note: See TracChangeset for help on using the changeset viewer.