Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道有某种回调过程。我只想告诉所有网络设备,每次来自以太网的东西我都想自己处理。我还希望能够通过该代码自己发送以太网帧。
ns3::Node::RegisterProtocolHandler 是你的朋友。
请参阅文档:http ://www.nsnam.org/docs/release/3.17/doxygen/classns3_1_1_node.html#af713f0e7ea5c49b4fa0b3613405c45fa