lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #6827] etharp could need some tuning


From: Simon Goldschmidt
Subject: [lwip-devel] [task #6827] etharp could need some tuning
Date: Fri, 01 Jun 2007 07:50:27 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #22, task #6827 (project lwip):

To minimize breaking the abstraction, we could add a pointer (u8_t pointer or
to be more general, a void** which would mean having a void* member in the
pcbs) 'addr_hint' that can be filled by the netif->output() or
etharp_output() function, or whatever is behind netif->output(). 'addr_hint'
would have to be passed through the IP layer and the netif down to the arp
layer which could fill it. Protocols not needing this (e.g. icmp) would
simply pass a null pointer.

Another thing to 'tune': etharp_output() has the same parameters as
netif->output(), only in another order. If we make it the same order,
ethernetif_init can directly set netif->output() to etharp_output() to save a
function call.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?6827>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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