commit | 0415fd7b0d638614e9fabc74fd1ed105e0188362 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Tue Feb 25 22:04:17 2014 -0800 |
committer | Rich Lane <rlane@bigswitch.com> | Tue Feb 25 22:04:17 2014 -0800 |
tree | ab5e8abdfcda8c0b0251a00f04a6cbaac3a6ad43 | |
parent | 4d07244e824bdee64dc32a91417fdb177a2bd5c5 [diff] |
dataplane: copy buffer returned by pypcap When reading packets pypcap always returns a pointer to the same statically allocated memory, which will be overwritten the next time a packet is read. I believe this is a bug in pypcap. The workaround is to make a copy immediately.