Avoid traversing the list of fragment entris to check whether the
authorbluhm <bluhm@openbsd.org>
Tue, 4 Sep 2018 19:09:39 +0000 (19:09 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 4 Sep 2018 19:09:39 +0000 (19:09 +0000)
commit1d5480e517264458d24982eb4ee20c0055b2860c
tree2c733bc4314c37b2e07b2f6de01c4546e9a03b0b
parentee68d85956c832a347b4fdf29231c836314b6cbd
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.
idea from claudio@; OK claudio@ sashan@
sys/net/pf_norm.c