HomeFreeBSD

net/bpf: Fix writing of buffer bigger than PAGESIZE

Description

net/bpf: Fix writing of buffer bigger than PAGESIZE

When allocating the mbuf we used m_get2 which fails
if len is superior to MJUMPAGESIZE, if its the case,
use m_getjcl instead.

Reviewed by: kp@
PR: 205164
Pull Request: https://github.com/freebsd/freebsd-src/pull/131

Details

Provenance
Florian Florensa <florian@florensa.me>Authored on Feb 16 2018, 9:53 AM
impCommitted on Jun 23 2021, 4:39 PM
Parents
rGa75819461ec7: devctl: add ADDR_ADD and ADDR_DEL devctl event for IFNET
Branches
Unknown
Tags
Unknown