标签: ns-3
我知道有一些回调程序。我只是想告诉所有的网络设备,每次来自以太网我想自己处理它。我也希望能够通过该代码自己发送以太网帧
答案 0 :(得分:0)
ns3 :: Node :: RegisterProtocolHandler是你的朋友。
请参阅文档:http://www.nsnam.org/docs/release/3.17/doxygen/classns3_1_1_node.html#af713f0e7ea5c49b4fa0b3613405c45fa