Wireshark-dev: [Wireshark-dev] 【Looking for help】about " http2-fake-header" and "grpc-dissctor"

From: 徐国政 <gzxu@xxxxxxxxxxxxx>
Date: Sat, 23 Apr 2022 13:44:57 +0800 (GMT+08:00)

Hi everyone:

  I recently encountered a problem. 

 


  • I noticed that there is http2-fake-header feature in the recent wireshark user guide, but I downloaded the latest wireshark version (3.6.3),It does not have the function of http2-fake-header, how can I get a version that has the function of http2-fake-header, maybe its wireshark version number is 3.7.0?



  Below is the interface I see on the wiki(https://gitlab.com/wireshark/wireshark/-/wikis/gRPC):

  • in fact, I want to use the fake-header function to solve the problem that grpc-dissector cannot parse grpc packets normally, because I did not capture the first headers frame. When I capture the packets, the grpc connection has been running for a long time.


  • Here, let me ask again, can I specify the content-type and path information of http2-dissector and pass it to grpc-sub-dissector. Currently I am using lua script. But I didn't find the usage of specifying the passing parameter pinfo.private. I want to carry relevant parameters through pinfo.private so that grpc-sub-dissector can parse it, does this function currently exist? like below:

         pinfo.private["content_type"] = "application/grpc",       

         pinfo.private["path"] = "grpc.service/rpc_method".



Looking forward to your reply, thank you very much.