protofield

    0热度

    2回答

    我目前正在研究我的第一个协议解析器。我面临着一个我无法解决的问题。基本上我有一个长度为8个字节的字段(但是定义为9个字节),所以我创建了一个位字段来定义这个protofield。 下面是到目前为止,我已经测试领域的deffinitions: a) local harer_id = ProtoField.string ("myProto.harer_id","Harer ID", base.ASCI

    1热度

    1回答

    考虑下面的例子: local f= mycoolprotocol.fields f.Length = ProtoField.uint32("MCP.Length","Length",base.DEC) f.MsgType = ProtoField.uint16("MCP.MsgType","MsgType",base.DEC) 我宣布2个Protofields。但是想象一下,我有一个重复的