Wireshark-bugs: [Wireshark-bugs] [Bug 8414] Add USBVIDEO (UVC) dissector
Date: Fri, 08 Mar 2013 23:38:49 +0000

changed bug 8414

What Removed Added
Attachment #10221 Flags   review_for_checkin?

Comment # 19 on bug 8414 from
Created attachment 10221 [details]
Fix for cut-and-paste error

Oops, the duplicate INT_VIDEOCONTROL was a cut-and-paste error. Fix attached.

Re: dissector_try_uint(): 

I debated replacing the table-driven dispatch with a simple 'switch' to
validate the request type, since all the known requests from the last 6 or so
years map to the same function. (i.e., table-driven dispatch is overkill
already). I left it in because (A) I didn't know if there would be an objection
to a simple, but rather large, switch statement, and (2) the UVC "ALL" requests
might need different handling at some point. At the moment they're pretty
poorly defined in the standard.

But the issue with dissector_try_uint() - and packet-usb.c has this already -
is that its return value (gboolean, success/failure) is not compatible with
that of the caller (int, offset). I'm not quite sure why that function was
implemented that way, but I think it limits its usefulness. Maybe it's an
"old-style dissector" compatibility thing.

Thanks again for helping get this merged.


You are receiving this mail because:
  • You are watching all bug changes.