Wireshark mailing list archives

Re: How do I register a sub-dissector for HTTP2?


From: Richard Sharpe <realrichardsharpe () gmail com>
Date: Tue, 13 Jun 2017 09:30:15 -0700

On Tue, Jun 13, 2017 at 8:31 AM, Peter Wu <peter () lekensteyn nl> wrote:
On Sat, Jun 10, 2017 at 10:05:33PM -0700, Guy Harris wrote:
On Jun 10, 2017, at 4:19 PM, Richard Sharpe <realrichardsharpe () gmail com> wrote:

Let's say I want to register a sub-dissector for HTTP2 on port 50051,
how do I do that?

Step 1: add support to the HTTP/2 dissector for actually parsing
headers and, based on the content type etc., handing the dissector off
to the appropriate sub-dissector.

Step 2: register the sub-dissector in whatever table the code added in
Step 1 uses.

Header reassembly is currently implemented in the master version (and
the 2.4 branch). For data reassembly you will need a patch like this:
https://code.wireshark.org/review/20737

Hmmm, that is interesting, but for what I have in mind I can use the
existing stuff. I have added support for sub-dissectors and may post a
patch when I get further along with what I am planning on doing.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: