Hi,

Frédéric BERNON a écrit :
Hi,

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

Sorry but I can't since sometimes source IP address is broadcast (255.255.255.255).

Nicolas



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);

==================================== Frédéric BERNON HYMATOM SA Chef de projet informatique Microsoft Certified Professional Tél. : +33 (0)4-67-87-61-10 Fax. : +33 (0)4-67-70-85-44 Email : [EMAIL PROTECTED] Web Site : http://www.hymatom.fr ====================================
P Avant d'imprimer, penser à l'environnement

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Nicolas Pinault
Envoyé : lundi 17 décembre 2007 17:00
À : Mailing list for lwIP users
Objet : [lwip-users] Source MAC address

Hi all,

My system uses non connected sockets (UDP) to get data from other machines. Some packets are received thru broadcast address (255.255.255.255). In the thread wich manages the rx socket, I'd like to know the sender MAC address. I allready have the sender IP address but that is not what I want. It seems it is not posible to get this information without a big modification of lwip.
I am wrong ?

Nicolas


_______________________________________________
lwip-users mailing list
[email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to