|
Hi, I'm using tcp_dissect_pdus(tvb, pinfo, tree, TRUE, FRAME_HEADER_LEN, get_foo_message_len, dissect_foo_message) to reassemble split TCP Packets in my own dissector. However, I cannot get the full TCP packet. In the dissect_foo_message, I do nothing first, just get the full TCP context by using:
the context in str is truncated. I'm confused, according to the tutorial, I should get the full TCP packet in the dissect_foo_message, right? Help!! |

We'll need to see a bit more of your code. How are you determining the actual length of the PDU in
get_foo_message_len()?dissect_foo_message()will be handed a tvb of whatever length is returned byget_foo_message_len()}
Hi Bill, I didn't finish the code, now i'm testing the function tcp_dissect_pdus() to check whether it works. But i try to give specific code in the below comment. besides that I have two questions: 1. I cannot get the len in advance, for the protocol didn't give it... is there any other way to get it? 2. for test, i set the return value of get_foo_message_len fixed, like 2000. but the data i get is not consecutive? confused...
[ This type of discussion is best done on wireshark-dev@wireshark.org mailing list.
So: I'm taking the liberty of "closing" this question in favor of continuing the discussion on wireshark-dev; I'll post a reply shortly on wireshark-dev.
See https://www.wireshark.org/lists/ to subscribe to the list. ]