I wonder if there's a way to convert pcap packets to byte streams that are usable in C or Python? That would be the best if the conversion can also be done in C or Python.
What I want to do is to regenerate the packets to do some testings, and due to the framework limitations, it can only be done in C/Python. Thanks a lot.