在OMNeT++的INET框架中为EthernetSwitch加自定义层遇协议错误
OMNeT++ INET框架下新增SmartLayer后的协议识别错误问题
我在OMNeT++的INET框架中,为EthernetSwitch模型新增了一个仅实现消息接收与转发功能的自定义层SmartLayer。复制EthernetSwitch代码后,将SmartLayer连接在rl层与relay之间,但运行仿真时触发如下错误:
handlePacket(): Unknown protocol: protocolId = 12, protocolName = ethernetmac, servicePrimitive = INDICATION, pathStartGate = Tictoc.smartSwitch.eth[0].mac.upperLayerOut, pathEndGate = Tictoc.smartSwitch.li.in[2] -- in module (inet::MessageDispatcher) Tictoc.smartSwitch.li (id=63), at t=0.00000581s, event #8
我已提供网络配置.ini、网络NED文件、SmartSwitch复合模块NED文件、SmartLayer的.cc及NED代码,参考相关方案仍未解决,请求解答该错误的原因及解决方法。
内容的提问来源于stack exchange,提问作者Sean Etinger
相关产品推荐
相关产品推荐

