Project

General

Profile

Actions

Bug #5257

closed

tcpdump is not working with zerocopy enabled (net.bpf.zerocopy_enable=1)

Added by Jim Pingle about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Operating System
Target version:
Start date:
10/05/2015
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3
Affected Architecture:
All

Description

tcpdump is failing when zerocopy is enabled (net.bpf.zerocopy_enable=1) which is the default.

Sample failure message:

: tcpdump -i em0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on em0, link-type EN10MB (Ethernet), capture size 65535 bytes
tcpdump: pcap_loop: BIOCROTZBUF: Capabilities insufficient

I had seen this a few weeks back but only on a vtnet interface. At the time, gnn found the bug in FreeBSD, but the fix does not seem to have made its way into pfSense 2.3 yet.

I've tried with multiple types of NICs (vmx, vtnet, em --real and virtualized, and re) -- same behavior on all. All on current snapshots.

Actions #1

Updated by Chris Buechler about 9 years ago

  • Status changed from New to Confirmed
  • Priority changed from Normal to High

seems to affect all interface types, physical hardware, VMs, virtual interfaces (PPPoE, GRE, gif)

Actions #2

Updated by Luiz Souza about 9 years ago

  • Assignee set to Luiz Souza
Actions #3

Updated by Luiz Souza about 9 years ago

The recent fixes I did in bpf (that fixed the zerocopy buffers in bpf) caused this issue (now that tcpdump is really trying to use the zero copy buffers).

There is a disallowed ioctl in capsicum.

I'll submit the fix to upstream.

Actions #5

Updated by Luiz Souza about 9 years ago

I am disabling the zero copy buffers in pfSense until all the raised issues are fixed in FreeBSD.

Actions #6

Updated by Luiz Souza about 9 years ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

Workaround committed to 2.3.

Awaiting the next tcpdump release (and the hostapd fix) to enable the zero copy buffers again.

Actions #7

Updated by Chris Buechler about 9 years ago

  • Status changed from Feedback to Resolved

fixed

Actions

Also available in: Atom PDF