I am capturing HTTP packets, and as I expected, it is breaking them up as some of the packers are just too large for one packet. How can I merge packets together? I've looked into the structure, and nothing is popping out. The one thing I did find is that the Window size is the same for all the packets that should belong together.
I also considered just accumulating all the packet data, and parsing using the HTTP header information, but there has to be a better way - as I am sure some of the packets I am seeing can be rejected and requested again.
I am using the C library, code would be nice, but I am more interested in how I should merge these at the library level.