Hey, I'm building a dissector and I would like to know if it is possible to explicitly declare about errors. for example: If something's length should be 0, but it doesn't, then I want to say "error, something is wrong" Thanks ahead. asked 06 Dec '12, 02:15 hudac |
One Answer:
Thanks to "SidR", You should take the following line, and do variations on him. (remember to include epan/expert.h ) expert_add_info_format(pinfo, acp_data_tree, PI_MALFORMED, PI_WARN, "Length > 0"); answered 06 Dec '12, 02:58 hudac |
You're welcome. :)