lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] arp_query() and network drivers design


From: Adam Dunkels
Subject: [lwip-users] Re: [lwip] arp_query() and network drivers design
Date: Thu, 09 Jan 2003 01:32:21 -0000

Hi Leon!

On Friday 18 January 2002 10.39, you wrote:
> considering ARP and network device drivers.

I'm not quite sure I get your point. The current design is as follows:

* netif->output() uses arp_lookup() to find the MAC address of an IP address.
* If arp_lookup() returns NULL, arp_query() is called. arp_query() returns a 
pbuf with an ARP query that is sent out on the network.

Since all arp_* stuff is done internally in netif->output(), no loops are 
entered.

Since your DHCP client needs to send an ARP query, I guess the best way would 
be (just as you suggest) to add a netif->linkoutput() and send the pbuf 
returned by arp_query().

/adam
-- 
Adam Dunkels <address@hidden>
http://www.sics.se/~adam
[This message was sent through the lwip discussion list.]




reply via email to

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