lwip-users
[Top][All Lists]
Advanced

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

RE : [lwip-users] Source MAC address


From: Frédéric BERNON
Subject: RE : [lwip-users] Source MAC address
Date: Mon, 17 Dec 2007 17:52:08 +0100

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

 
  
====================================
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 : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden 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
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

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