]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Count holes rather than fragments for reassembly
authorkp <kp@FreeBSD.org>
Fri, 2 Nov 2018 15:23:57 +0000 (15:23 +0000)
committerkp <kp@FreeBSD.org>
Fri, 2 Nov 2018 15:23:57 +0000 (15:23 +0000)
commit7937cf919fdc42f96987547ccd5a33c47e603d6a
treebcc66eae28900b65a41a3805a22b343e17fa375f
parent233edbd72ffbf90c24184aede88d7eefca1a1603
pf: Count holes rather than fragments for reassembly

Avoid traversing the list of fragment entris to check whether the
pf(4) reassembly is complete.  Instead count the holes that are
created when inserting a fragment.  If there are no holes left, the
fragments are continuous.

Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D17732
sys/netpfil/pf/pf_norm.c