]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add required checks for unmapped mbufs in ipdivert and ipfw
authorMark Johnston <markj@FreeBSD.org>
Wed, 21 Apr 2021 19:38:01 +0000 (15:38 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 28 Apr 2021 14:00:13 +0000 (10:00 -0400)
commit2b826286c3b951df0bb3b4250eecbb7adc5c860b
treea87183446a46109a9f100e1dc32b15276b4e8edb
parent29246f2cb0c5c5c06c73e99dc0d6c947f62c7dc4
Add required checks for unmapped mbufs in ipdivert and ipfw

Also add an M_ASSERTMAPPED() macro to verify that all mbufs in the chain
are mapped.  Use it in ipfw_nat, which operates on a chain returned by
m_megapullup().

PR: 255164
Reviewed by: ae, gallatin
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29838

(cherry picked from commit 652908599b6fa7285ee60cb567b97e70b648ac29)
sys/netinet/ip_divert.c
sys/netpfil/ipfw/ip_fw_nat.c
sys/netpfil/ipfw/nat64/nat64_translate.c
sys/sys/mbuf.h