SendingICMPping对于ICMPping请求(回显请求),我需要获取目标的MAC地址吗?我正在尝试学习如何使用原始套接字在C中实现这一点,但无法理解如何获取目标的MAC地址。任何帮助表示赞赏。谢谢。建议:获取coreutils的源码,看看ping。gnu.org/software/coreutils@HuStmpHrrr:ping不在coreutils中。[...]doIneedtogettheMACaddressofthedestination?不,你不应该,在大多数情况下。来自raw(7)的手册页(我的重点):RawsocketsallownewIPv4protocolstobe