Wireshark-bugs: [Wireshark-bugs] [Bug 6396] Added cursor type decoding to MySQL dissector
Date: Tue, 27 Sep 2011 11:24:38 -0700 (PDT)

--- Comment #5 from Bill Meier <[email protected]> 2011-09-27 14:24:37 EDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > Minor Q: Does it make any sense (and is it possible) to show "unused" if the
> > MYSQL version is less than 5.0 and show the flags if version is >= 5.0.
> It would make sense, but I'm not sure whether it is possible or not -- it's the
> first time I'm hacking around in Wireshark code. 

Welcome !

> I tried asking on #wireshark
> at Freenode, but got no answers regarding the availability of previous packets
> in the context of the dissector.

The mysql dissector has code to store "per-conversation" (connection) info. 
See dissect_mysql_pdu() and mysql_dissect_greeting().

I see that mysql_dissect_greeting() dissects a "version" string. If the string
has well-defined values for the mysql version, then maybe a version number can
be saved in the conversation data (mysql_conn_data_t) in a manner similar to
the way done for the "caps".

The default for "version" (if no greeting seen) could be whatever is most
appropriate: V5 ?

Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.