kaitoy / pcap4j

A Java library for capturing, crafting, and sending packets.

Home Page:https://www.pcap4j.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I get mac address?

SpicyChicken1010 opened this issue · 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?

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