Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] problems using http_dissector_add

From: Brian Vandenberg <phantal@xxxxxxxxx>
Date: Sat, 26 May 2007 11:20:40 -0600
Previously I've been using (method name escapes me) to add my dissector as a subdissector of http based on the media-content header property, but that is no longer going to be a legitimate means of dissecting the protocol I'm working with and I need to do this based on port.

 That said, here's what I'm doing, followed by the problem I'm having:

* Setup SSL dissector with: ip,http,443,<path>
* Calling: http_dissector_add (443, <my dissector handle>); ... from within my code.

But, it never hands off the http packet to my dissector. I'm still fairly new to this, so I'm unsure how to proceed. I plan on tracing through once http gets ahold of it, and see if I can figure it out, but if anyone has any ideas they'd be appreciated.

-Brian