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

mozillazg / ptcpdump / 46157758351
72%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2026 03:19PM UTC
Jobs 1
Files 78
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

28 Nov 2026 03:02PM UTC coverage: 72.019% (-0.06%) from 72.078%
46157758351

push

github

web-flow
fix(tp-btf): scope events to the selected device and keep the L2 header (#433)

* fix(tp-btf): scope events to the selected device and keep the L2 header

The tp_btf hooks are global tracepoints, so:

- the ifindex-only filter matched the same ifindex in another network
  namespace (the two ends of a veth pair usually get the same ifindex),
  and every packet was captured twice. Filter by (netns, ifindex) and
  resolve the device name with the event's namespace instead of only the
  process namespace.
- on ingress eth_type_trans() has already pulled the L2 header, so
  skb->data points at the network header: the payload lost the real MAC
  addresses and was decoded with a fake Ethernet header. Copy the L2
  header into the event and prepend it on the Go side.

Regenerated the BPF objects and the bpf2go bindings with the dev image.

* test: cover the tp_btf device scope and L2 header

Capture on one end of a veth pair (both ends usually share the same
ifindex) and check that each packet is captured once, that the ingress
packet carries the process info, and that the pcap contains the real MAC
addresses. Enable the vlan test for tp-btf as well now that the ingress
payload carries the L2 header.

39 of 47 new or added lines in 6 files covered. (82.98%)

7 existing lines in 2 files now uncovered.

4476 of 6215 relevant lines covered (72.02%)

0.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
74.94
-0.29% bpf/bpf.go
1
0.0
0.0% bpf/bpf_legacy_x86_bpfel.go
1
0.0
0.0% bpf/bpf_no_tracing_x86_bpfel.go
1
77.23
0.28% internal/capturer/capturer.go

Coverage Regressions

Lines Coverage ∆ File
5
78.46
-1.92% internal/metadata/container/containerd/containerd.go
2
60.31
-0.52% bpf/event.go
Jobs
ID Job ID Ran Files Coverage
1 46157758351.1 28 Nov 2026 03:19PM UTC 78
72.02
GitHub Action Run
Source Files on build 46157758351
  • Tree
  • List 78
  • Changed 9
  • Source Changed 6
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46157758351
  • 7dda6561 on github
  • Prev Build on master (#46128473687)
  • Next Build on master (#46244754227)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc