Skip to content
Snippets Groups Projects
Commit df4e97b5 authored by Pierre LALET's avatar Pierre LALET
Browse files

Use `Packet().raw_packet_cache` attribute when iterating

When iterating over `Packet` instances, `.raw_packet_cache` attribute
was not used, causing bugs similar to the one detailed in issue #913
to appear when packets sniffed or built from strings representations
were used with `wrpcap()`, `send`(`p`?), `sr`(`p`?), etc.

This commit essentially copies the `.raw_packet_cache` attribute in
`.clone_with()` method.

--HG--
branch : issue-5105
parent e4de3aa9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment