ValentinBELYN / icmplib

Easily forge ICMP packets and make your own ping and traceroute.
GNU Lesser General Public License v3.0
276 stars 45 forks source link

Multiping #43

Closed AzPyCoder closed 2 years ago

AzPyCoder commented 2 years ago

Dear Valentin, Can you add to a icmplib library function receive MAC address during multiping? Thanks.

ValentinBELYN commented 2 years ago

Hi @AzPyCoder,

I don't see the case for retrieving the MAC address during a ping, knowing that it is only useful for machines on the same network (for machines outside your network, you would see the MAC address of your gateway). In addition, it is difficult to access this information, especially in IPv6 where the Ethernet header is not accessible in Python.

So if you want to retrieve the MAC addresses, I recommend that you consult the arp table of your machine after the multiping.

Sorry for not being able to help you further.