lwip-users
[Top][All Lists]
Advanced

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

Re: RE : [lwip-users] Source MAC address


From: Nicolas Pinault
Subject: Re: RE : [lwip-users] Source MAC address
Date: Thu, 20 Dec 2007 10:21:40 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Bonjour Frédéric,


Hi,

I think you could use etharp_find_addr to read the ARP table :

s
/**
 * Finds (stable) ethernet/IP address pair from ARP table
 * using interface and IP address index.
 * @note the addresses in the ARP table are in network order!
 *
 * @param netif points to interface index
 * @param ipaddr points to the (network order) IP address index
 * @param eth_ret points to return pointer
 * @param ip_ret points to return pointer
 * @return table index if found, -1 otherwise
 */
s8_t etharp_find_addr(struct netif *netif, struct ip_addr *ipaddr, struct 
eth_addr **eth_ret, struct ip_addr **ip_ret);
So, I finaly use your solution. I have set ETHARP_TRUST_IP_MAC to 1 for the system to work correctly.

Thanks for your help.

Nicolas




reply via email to

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