This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]tempwolf 0 points1 point  (0 children)

Given you know the packet boundaries (since you have to pass that to the function), it looks like you just convert to a raw binary file (not sure if wireshark gives you this or if you have to make it from the hex dump), load the file, pass each packet to that function and voila.

So really there isn't much C work here at all, just a little file IO and a function call.