I wrote a plugin for wireshark 1.7.1 which was working fine then. When i tried same source with 1.9.0 , it gives me following error while make install. packet-extl2.c: In function 'proto_reg_handoff_extl2': Here is my function which is creating problems: void I am not sure what's wrong. dissect_extl2 returns "tvb_length" and has return type of static int. And also what header i am missing to get "implicit declaration of dissector_add" . Any help appreciated. Thanks for your time. asked 28 Feb '13, 06:00 yogeshg edited 28 Feb '13, 06:11 |
2 Answers:
I think the problem you're experiencing is that the prototype for the dissectors' top-level dissection routine has changed. Here's how I get around it with my (private) dissector (which I compile on into Wireshark versions before and after this change):
answered 28 Feb '13, 06:40 JeffMorriss ♦ |
Try changing dissector_add() to dissector_add_uint(). answered 28 Feb '13, 06:33 Anders ♦ |
at least error is not coming now , thank you.