pcap4j icon indicating copy to clipboard operation
pcap4j copied to clipboard

How can I get mac address?

Open SpicyChicken1010 opened this issue 3 years ago • 2 comments

if I don't know the mac address,how can i encapsulate packet. Arp request is designed for getting dst mac address,sending arp request is the network interface's responsibility,how can i make network interface to do this work for me?

SpicyChicken1010 avatar Aug 04 '22 06:08 SpicyChicken1010

You can obtain the MAC address of the gateway to facilitate contracting.

su-404 avatar Aug 07 '22 15:08 su-404

@SpicyChicken1010 you can refer https://github.com/gaoxingliang/mac-address-detector-java

gaoxingliang avatar Nov 29 '23 02:11 gaoxingliang