从消息或数据包中提取源节点名和目的节点名 [英] Extracting source node name and destination node name from message or packet
问题描述
需要提取消息或数据包中的源节点名称和目的节点名称,而不是IP地址或MAC地址,这可能需要定义包含源节点名称和目的节点名称的新消息类型.例如,当名为 hostA 的节点向名为 hostB 的节点发送数据包时,会记录或输出诸如(hostA"、hostB"、packet154")之类的记录.
Extracting source node name and destination node name are required instead of IP address or MAC address in messages or packets, which may need to define a new message type that includes source node name and destination node name. For example, when a node named hostA send a packet to a node named hostB, a record such as ("hostA", "hostB", "packet154") is logged or output.
推荐答案
日志窗口中已经出现这种情况.(至少在 OMNeT++ 6 预览版中).只需在右下角切换到数据包模式即可.
That is already the case in the log window. (at least in OMNeT++ 6 preview). Just switch to packet mode in the lower right corner.
这篇关于从消息或数据包中提取源节点名和目的节点名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!