【问题标题】:Send message using MAC address on PC without IP in LAN在没有 IP 在 LAN 中的 PC 上使用 MAC 地址发送消息
【发布时间】:2016-02-27 19:46:04
【问题描述】:

需要在没有配置IP的PC上使用C语言的MAC地址发送消息作为对PC广播消息的回复。我想我应该使用 ethernet-header 并使用一些(linux)内核的结构和子例程,但是我找不到关于我的问题的好的链接和示例。

【问题讨论】:

  • 了解原始套接字

标签: c linux networking


【解决方案1】:

在 Linux 中发送原始以太网帧的示例:

https://gist.github.com/austinmarton/1922600

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-06
    • 2011-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多