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: Sun, 24 Jun 2007 12:01:55 +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 #42, task #6827 (project lwip):

> I quite like your solution conceptually, but agree it does
> involve some layering violations and lots of little
> modifications to the code, so not easily disabled with #define.

I've modified the 'addr_hint' solution by including an 'u8_t* add_hint' in
struct netif. tcp/udp & raw set that pointer to their '&(pcb->addr_hint)' and
reset it to NULL after calling ip_output_if.

That way, it can easily be defined out.

I'll attach a patch.

(Note: tcp needs to call ip_route & ip_output_if instead of ip_output to have
the netif; because of that, IP_STATS_INC(ip.rterr) and
snmp_inc_ipoutnoroutes() have to be moved from ip_output to ip_route).

(file #13144)
    _______________________________________________________

Additional Item Attachment:

File name: etharp_addrhint2.patch         Size:12 KB


    _______________________________________________________

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]