http2 post dissector not called for data
I am writing a lua dissector to analyze data inside a http2 packet.
f_http2_type = Field.new("http2.type")
rpc_pd = Proto("rpc_ext","rpc dissector")
function rpc_pd.dissector(buffer,pinfo,tree)
local rpc_msg_field = f_http2_type()
if (rpc_msg_field.value == 0x00) then
io.write("Type: Data")
elseif (rpc_msg_field.value == 0x01) then
io.write("Type: Header")
end
register_postdissector(rpc_pd)
In tcp segment, http2 header and http2 data parts come together. Above dissector is called only for http2 header and not for http2 data which is in same tcp segment after header.
please suggest a solution.
I am facing the same issue, did you get a clue about this? Thanks a lot.