how to determinate destination MAC address

前端 未结 2 737
夕颜
夕颜 2021-01-28 22:59

My application is running on CentOS 5.5 I need to send raw packets using libpcap API:

pcap_inject() or pcap_sendpacket()

To the specific IP add

2条回答
  •  故里飘歌
    2021-01-28 23:40

    In general, MAC addresses don't matter for remote targets. They are not routable; a router here at my office doesn't know the MAC addresses of network cards across the Internet. That's what IP addresses are for. Do you mean local only?

提交回复
热议问题