| 1 | initial version |
Here is a doctored up version of the original Lua above.
The syntax changes are from looking through the Lua Examples on the Wireshark wiki.
f_http2_type = Field.new("http2.type")
rpc_pd = Proto("rpc_ext","rpc dissector")
function rpc_pd.dissector(buffer,pinfo,tree)
finfos = { f_http2_type() }
for _, rpc_msg_field in ipairs(finfos) do
io.write(pinfo.number)
io.write(": ")
if (rpc_msg_field.value == 0x00) then
io.write("Type: Data\n")
elseif (rpc_msg_field.value == 0x01) then
io.write("Type: Header\n")
else
io.write("Type: ")
io.write(rpc_msg_field.value)
io.write("\n")
end
end
end
register_postdissector(rpc_pd)
| 2 | No.2 Revision |
Here is a doctored up version of the original Lua above.
The syntax changes are from looking through the Lua Examples on the Wireshark wiki.
f_http2_type = Field.new("http2.type")
rpc_pd = Proto("rpc_ext","rpc dissector")
function rpc_pd.dissector(buffer,pinfo,tree)
finfos = { f_http2_type() }
for _, rpc_msg_field in ipairs(finfos) do
io.write(pinfo.number)
io.write(": ")
if (rpc_msg_field.value == 0x00) then
io.write("Type: Data\n")
elseif (rpc_msg_field.value == 0x01) then
io.write("Type: Header\n")
else
io.write("Type: ")
io.write(rpc_msg_field.value)
io.write("\n")
end
end
end
register_postdissector(rpc_pd)
57 -- extract the field into a table of FieldInfos
58 finfos = { field() }
Then iterate over the array members:
66 for _, finfo in ipairs(finfos) do
| 3 | No.3 Revision |
Here is a doctored up version of the original Lua above.
The syntax changes are from looking through the Lua Examples on the Wireshark wiki.
f_http2_type = Field.new("http2.type")
rpc_pd = Proto("rpc_ext","rpc dissector")
function rpc_pd.dissector(buffer,pinfo,tree)
finfos = { f_http2_type() }
for _, rpc_msg_field in ipairs(finfos) do
io.write(pinfo.number)
io.write(": ")
if (rpc_msg_field.value == 0x00) then
io.write("Type: Data\n")
elseif (rpc_msg_field.value == 0x01) then
io.write("Type: Header\n")
else
io.write("Type: ")
io.write(rpc_msg_field.value)
io.write("\n")
end
end
end
register_postdissector(rpc_pd)
http2.type
57 -- extract the field into a table of FieldInfos
58 finfos = { field() }
Then iterate over the array members:
66 for _, finfo in ipairs(finfos) do