On Sun, Nov 03, 2002 at 12:37:23PM -0800, Guy Harris wrote: > Unfortunately, the result of "proto_registrar_get_name(hfindex)" is the > name of the field being put into the protocol tree, not the name of the > protocol corresponding to the UUID in question. You'd have to call a > routine in "packet-dcerpc.c" to look up the name of the protocol > corresponding to the UUID. (Unfortunately, you need the protocol > version for that as well.) ...although, if a UUID corresponds to a particular protocol, no matter what version - just as the program number in ONC RPC corresponds to a particular protocol, no matter what version - we could split the DCE registration functions into a "dcerpc_init_uuid()" that takes a protocol number, and ett value, and a UUID, and registered the UUID for that protocol, and another routine that takes a UUID, a version number, and a "dcerpc_sub_dissector *" and registers the dissectors for that version of the protocol. (I don't know which one would take the "opnum_hf" argument; if different versions of the protocol can have different names for particular operation numbers, it'd be the second routine, along the lines of what's one for ONC RPC, otherwise it'd be the first routine.)
Powered by MHonArc 2.6.10