Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcapng enhancements (idb,epb) and some fixes #4342

Merged
merged 7 commits into from Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions scapy/packet.py
Expand Up @@ -430,6 +430,8 @@ def copy(self) -> Self:
clone.payload.add_underlayer(clone)
clone.time = self.time
clone.comment = self.comment
clone.direction = self.direction
clone.sniffed_on = self.sniffed_on
return clone

def _resolve_alias(self, attr):
Expand Down Expand Up @@ -1140,6 +1142,8 @@ def clone_with(self, payload=None, **kargs):
)
pkt.wirelen = self.wirelen
pkt.comment = self.comment
pkt.sniffed_on = self.sniffed_on
pkt.direction = self.direction
if payload is not None:
pkt.add_payload(payload)
return pkt
Expand Down