pcap4j
pcap4j copied to clipboard
How can I get mac address?
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?
You can obtain the MAC address of the gateway to facilitate contracting.
@SpicyChicken1010 you can refer https://github.com/gaoxingliang/mac-address-detector-java