lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Delays when sending packets


From: Sergio PérezAlcañiz
Subject: [lwip-users] Delays when sending packets
Date: Wed, 30 Apr 2003 11:13:24 +0200 (CEST)
User-agent: IMP/PHP IMAP webmail program 2.2.3

Hello, I realized of one problem in ethernetif.c, an is that when trying to send
a packet to an address that we still don't know the mac, instead of the packet,
we ONLY send an arp request, and the packet is only send when the timeout has
expired. 
In ethernetif_output:

......................................................

 /* If the arp_lookup() didn't find an address, we send out an ARP
     query for the IP address. */
  if(dest == NULL) {
    q = arp_query(netif, ethernetif->ethaddr, queryaddr);
    if(q != NULL) {
      err = low_level_output(ethernetif, q);
      pbuf_free(q);
      return err;
    }

...................................

Since low_level_output ALWAYS returns ERR_OK, ethernetif_output will return
ERR_OK, but the packet that we wanted to send hasn't been sent. 
I think that, only when the timeout attached to that packet expires, then the
packet is really sent, and it is exactly the "timeout" time that I see as 
"delays".

Any ideas???

Regards.
Sergio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]