问题描述
local myproto = Proto("MyProto","My Custom Protocol")
myproto.fields.msg_counter = protofield.uint8("myproto.msg_counter","Message counter",base.DEC)
function myproto.dissector(tvbuf,pktinfo,root)
pktinfo.cols.protocol = myproto.name
if root.visible then
root:add_le(myproto.fields.msg_counter,tvbuf(10,1))
end
end
local udp_port = dissectorTable.get("udp.port")
udp_port:add(5432,myproto)
可以,“消息计数器”字段及其值正确显示在树形区域中。但是,当我右键单击该字段并选择“应用为列”时,该列已添加但仍为空:
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)