Getting following error while make : error: implicit declaration of function 'tvb_get_guint16' error: implicit declaration of function 'tvb_get_guint24' What library i will have to include to fix this ? asked 10 Jun '12, 09:10 yogeshg |
One Answer:
You are calling a function that does not exist, hence the error message. In tvbuff.c only What are you trying to do? Please post the part of your code, where you call those functions. Regards answered 10 Jun '12, 10:32 Kurt Knochner ♦ |
actually i was trying to read 16 bits or 24 bits , and i googled and found these functions used in some dissector by someone. Anyways i have fixed it now , i am using "tvb_get_ntohs" and "tvb_get_ntoh24". Anyways thanks for reply.
Yes. For an 8-bit quantity, "big-endian" ("host byte order") and "little-endian" are the same, but for any integral quantity bigger than 8 bits, the byte order matters. If there were
tvb_get_guint16()
ortvb_get_guint24()
or... routines, they would have to take an argument specifying the byte order; Wireshark, instead, has separate routines to fetch big-endian (tvb_getntoh...) and little-endian (tvb_getletoh...) values.