• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozillazg / ptcpdump / 17528012028
73%

Build:
DEFAULT BRANCH: master
Ran 07 Sep 2025 11:49AM UTC
Jobs 1
Files 77
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Sep 2025 11:37AM UTC coverage: 73.348% (-0.09%) from 73.438%
17528012028

push

github

web-flow
fix(bpf): Correctly parse IP headers with options (#337)

* feat(bpf): Improve PID attribution and IP parsing

This commit introduces several improvements to the eBPF probe to enhance robustness and feature completeness.

- feat: Add fallback for PID attribution
  Uses `bpf_get_current_task()` as a fallback mechanism to resolve the process ID for a packet. This significantly improves PID attribution for scenarios where the primary flow-based mapping might fail, such as with short-lived connections. Includes a check for kernel support to ensure backward compatibility.

- fix: Correctly parse IP headers with options
  The IP header length is now dynamically calculated based on the IHL (Internet Header Length) field. This fixes a bug where packets with IP options would be parsed incorrectly, leading to errors in L4 (TCP/UDP) header analysis.

- chore: Clean up debug logs
  Commented out several `debug_log` statements to reduce noise and performance overhead.

* refactor(bpf): Remove unsafe PID fallback

Removes the PID fallback mechanism that uses bpf_get_current_task().
This is unsafe without a reliable way to detect interrupt context (e.g., bpf_in_interrupt()),
as it can lead to incorrect PID association.
The explanatory comment is updated to reflect this.

4907 of 6690 relevant lines covered (73.35%)

0.82 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
79.17
-0.35% internal/metadata/container/containerd/containerd.go
5
79.82
-2.19% internal/metadata/container/docker/docker.go
Jobs
ID Job ID Ran Files Coverage
1 17528012028.1 07 Sep 2025 11:49AM UTC 77
73.35
GitHub Action Run
Source Files on build 17528012028
  • Tree
  • List 77
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17528012028
  • a7eefa85 on github
  • Prev Build on master (#17522615741)
  • Next Build on master (#18148113780)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc