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

mozillazg / ptcpdump / 46128473687
72%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2026 09:17AM 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 09:01AM UTC coverage: 72.078% (-0.2%) from 72.318%
46128473687

push

github

web-flow
fix(bpf): support VLAN-tagged packets on L2 devices (#432)

* fix(bpf): skip VLAN tags when parsing the L2 header

The kernel pops the outer VLAN tag before the tc hooks, but stacked VLAN
(QinQ), AF_PACKET egress taps and similar paths leave tags in the packet
data. The tag was used as the L3 ethertype, so the flow tuple stayed zero
and ingress packets lost their process info (and were dropped with
--pname/--pid).

Walk up to two VLAN tags in parse_skb_l2() and in the tp_btf path.

* fix(capture): don't fail the load for L2-only pcap filters

Expressions like 'vlan and tcp' can't be compiled for raw IP, so a single
L2-only expression made the whole load fail:

    inject pcap filter to ptcpdump_tc_ingress_l3: no VLAN support for Raw IP

The L2 programs already got the real filter. Install a reject-all filter
for the L3 program variants instead (a VLAN expression can't match raw IP
anyway) and log a warning.

* test: cover VLAN ingress attribution on an L2 device

Two stacked VLAN tags (QinQ) keep one tag in the packet data after the
kernel pops the outer one, which is what the L2 parsing has to skip.
Capture on the parent device with 'vlan and tcp' and --pname: the peer's
RST only shows up if ingress attribution works. cgroup-skb only sees L3,
and tp-btf's ingress payload doesn't carry the L2 header yet, so skip
those backends for now.

* ci: refresh the apt index before installing deps in the unit-test job

The runner image ships a stale apt index, so installing libpcap-dev can
fail with a 404 when the mirror already dropped the indexed version:

  E: Failed to fetch .../libpcap0.8-dev_1.10.6-1ubuntu1.1_amd64v3.deb  404  Not Found
  ##[error]Process completed with exit code 100.

The build-with-dynamic-link job already runs apt-get update first.

13 of 13 new or added lines in 1 file covered. (100.0%)

26 existing lines in 5 files now uncovered.

4453 of 6178 relevant lines covered (72.08%)

0.72 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
75.23
-1.85% bpf/bpf.go
8
80.38
-2.31% internal/metadata/container/containerd/containerd.go
7
76.94
-1.88% internal/capturer/capturer.go
2
71.43
-5.71% internal/log/log.go
1
62.5
-12.5% bpf/report.go
Jobs
ID Job ID Ran Files Coverage
1 46128473687.1 28 Nov 2026 09:17AM UTC 78
72.08
GitHub Action Run
Source Files on build 46128473687
  • Tree
  • List 78
  • Changed 8
  • Source Changed 1
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46128473687
  • 23666c1e on github
  • Prev Build on master (#46006392112)
  • Next Build on master (#46157758351)
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