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

mozillazg / ptcpdump
73%

Build:
DEFAULT BRANCH: master
Repo Added 16 Feb 2025 03:34AM UTC
Files 77
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • add-more-tests
  • add-prefix
  • backend-tp-btf
  • coverage
  • dependabot/go_modules/golang.org/x/net-0.38.0
  • disable-reverse-match
  • dynamic-link
  • expression-file
  • file-size
  • fix-tcp-parse
  • fix-timestamp-drift
  • ignore-optinal-hooks-error
  • improve-ifname
  • improve-rotate
  • more-socket-cookie
  • mozillazg-patch-1
  • output-http
  • output-tls
  • read-stdin
  • renovate/all-github-action
  • renovate/all-go-deps-master
  • renovate/busybox-latest
  • renovate/go-github.com-containerd-containerd-vulnerability
  • renovate/go-github.com-docker-docker-vulnerability
  • renovate/golang-1.23.7-bookworm
  • renovate/golang-1.23.x
  • renovate/golang-1.24.4-bookworm
  • renovate/golang-1.24.5-bookworm
  • renovate/golang-1.24.6-bookworm
  • renovate/golang-1.24.x
  • renovate/golang-1.x
  • renovate/major-5-all-github-action
  • renovate/migrate-config
  • renovate/patch-all-github-action
  • renovate/patch-all-go-deps-master
  • renovate/patch-all-lvh-images-main
  • renovate/quay.io-ptcpdump-develop-20250411.x
  • renovate/quay.io-ptcpdump-develop-20250614.x
  • renovate/quay.io-ptcpdump-develop-20250809.x
  • socket-filter-backend
  • support-arm32
  • support-clone-process
  • tttt
  • unknown-event

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

Relevant lines Covered
Build:
Build:
6690 RELEVANT LINES 4907 COVERED LINES
0.82 HITS PER LINE
Source Files on master
  • Tree
  • List 77
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
17528012028 master 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 ... push 07 Sep 2025 11:49AM UTC web-flow github
73.35
17522615741 master chore(deps): update actions/checkout action to v5 (#334) Signed-off-by: renovate[bot] <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 07 Sep 2025 02:51AM UTC web-flow github
73.44
17522600547 master fix(deps): update module github.com/docker/docker to v28 [security] (#332) * fix(deps): update module github.com/docker/docker to v28 [security] Signed-off-by: renovate[bot] <bot@renovateapp.com> * fix "undefined: dockertypes.EventsOptions" --... push 07 Sep 2025 02:46AM UTC web-flow github
73.33
16846850712 master chore(deps): update all github action dependencies (#327) Signed-off-by: renovate[bot] <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 09 Aug 2025 07:33AM UTC web-flow github
73.79
16846821152 master chore(deps): update quay.io/ptcpdump/develop docker tag to v20250809 (#329) Signed-off-by: renovate[bot] <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 09 Aug 2025 07:28AM UTC web-flow github
73.28
16843302281 master chore(deps): update golang docker tag to v1.24.6 (#324) Signed-off-by: renovate[bot] <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 09 Aug 2025 01:00AM UTC web-flow github
73.42
16383317626 master chore(deps): update golang docker tag to v1.24.5 (#318) Signed-off-by: renovate[bot] <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 19 Jul 2025 01:35AM UTC web-flow github
73.81
16383315802 master chore(deps): update all github action dependencies (#319) Signed-off-by: renovate[bot] <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 19 Jul 2025 01:30AM UTC web-flow github
73.73
16088939472 master chore(deps): update all lvh-images main (#308) Signed-off-by: renovate[bot] <bot@renovateapp.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 05 Jul 2025 02:51PM UTC web-flow github
73.3
16088935732 master feat(output): Include TLS Client Hello and Server Hello in default output (#315) push 05 Jul 2025 02:48PM UTC web-flow github
73.46
See All Builds (140)
  • Repo on GitHub
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

© 2025 Coveralls, Inc