Hello dear Wireshark Exprets, after trying to update the plugin by myself and removing as much error as I can, I am stuck with These Errors and don't know what to do with These. I'd really appreciate your help. Thanks in advance
asked 28 Nov '16, 06:27 xaheen edited 28 Nov '16, 18:38 Guy Harris ♦♦ |
One Answer:
As for snprintf(), this is a standard C function and not a Wireshark API. answered 29 Nov '16, 05:12 Pascal Quantin Thanks a bunch for saving my day :D (29 Nov '16, 05:21) xaheen 1
It's a standard C99 function, but not a standard C89 function, and older versions of Microsoft Visual Studio don't provide it. In Wireshark 2.2 and later, you can include (29 Nov '16, 14:52) Guy Harris ♦♦ ep_strdup_printf(XXX) -> wmem_strdup(wmem_packet_scope(), XXX) didnt work for me. wmem_strdup_printf(wmem_packet_scope(), XXX) worked perfectly (01 Mar '17, 01:13) xaheen |
So you are looking at the following functions:
@jaap thanks for your reply. Which functions should I use instead of these functions?
In addition to the above you need to change the plugin_reg_handoff() to proto_reg_handof_foo. eg the same handoff and register functions are used in plugins as in regular dissectors. You should probably look at the(c)make files of plugin in the current code base. ep and se memory has been replaced by wmem you can look up the usage of those funktions in the docs and or the code base.
Thanks guys :)