Skip to content
Snippets Groups Projects

shadow: Capture only 40 bytes of packets

Merged opara requested to merge opara/arti:smaller-pcap into main

I've had this commit sitting in my arti repo since last August, so figured I'd make an MR. @jnewsome If there's any reason to not include this change, feel free to close, I don't have a strong opinion either way.


The pcaps are only used to check for leaks by reading the packet source/destination, so we don't need the entire packet. This should make CI artifacts a bit smaller. I see a current pcap artifact is about 46 MiB.

The fixed-size portion of an IP header is 20 bytes for IPv4 and 40 bytes for IPv6. Shadow doesn't support IPv6, but I used the IPv6 header size anyways.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading