fix DCE/RPC defragmentation, if both middle and last DCE/RPC fragments are in the...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 10 Sep 2005 15:11:21 +0000 (15:11 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 10 Sep 2005 15:11:21 +0000 (15:11 +0000)
commitcf432631fb76b2dd378a344f15e279fdb6cf16c5
tree7289180ad699fc13c5cba86a6f3b39a11e80fb4b
parentd07d4769ec7e169e7e009f6700f25b7322647535
fix DCE/RPC defragmentation, if both middle and last DCE/RPC fragments are in the same TCP desegmented data blob

reassemble.c:
I had to change the way the reassemble code works if the dissector is telling that more fragments *will* follow. In this case the reassemble code shouldn't try to reassemble already at that time ...

I've also changed the way if a fragment was already seen or not, as it's not enough to check for the frame number, in the scenario described above.

Unfortunately both changes *might* broke other protocols from reassemble properly. I've checked with excessive TCP desegmentation and it's still working without any changes :-)

packet-dcerpc.c:
use a tvb subset to limit the "end of bytes" processed in a single fragment dissect run, as each fragment has it's own DCE/RPC header (and isn't part of the stub data of the previous packet).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15744 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-dcerpc.c
epan/reassemble.c