Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

After digging into the protobuf dissector, it supports parsing the pb_msg_type of syntax application/grpc,/service/method,direction, and it works.

Just note that there must be a space between the method name and paren. proto service Greeter { rpc SayHello (HelloRequest) returns (HelloResponse); }

After digging into the protobuf dissector, it supports parsing the pb_msg_type of syntax application/grpc,/service/method,direction, and it works.

Just note that there must be a space between the method name and paren. paren.

proto
service Greeter {
   rpc SayHello (HelloRequest) returns (HelloResponse);
}

After digging into the protobuf dissector, it supports parsing the pb_msg_type of syntax application/grpc,/service/method,direction, and it works.

local protobuf_dissector = Dissector.get("protobuf")
pinfo.private["pb_msg_type"] = "application/grpc,/" .. service_name .. "/" .. method_name .. ",request"
protobuf_dissector:call(tvb_body, pinfo, tree)

Just note that there must be a space between the method name and paren.

service Greeter {
    rpc SayHello (HelloRequest) returns (HelloResponse);
}