mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Initialize the frentry (the control block that defines a rule) checksum
to zero. Matching checksums save time and effort by mitigating the need for full rule compare. MFC after: 3 days
This commit is contained in:
parent
fa99b3234a
commit
263a6508a3
1 changed files with 1 additions and 1 deletions
|
|
@ -4973,7 +4973,7 @@ frrequest(softc, unit, req, data, set, makecopy)
|
|||
* (this meaning no pointers are included).
|
||||
*/
|
||||
pp = (u_int *)(fp->fr_caddr + fp->fr_dsize);
|
||||
for (p = (u_int *)fp->fr_data; p < pp; p++)
|
||||
for (fp->fr_cksum = 0, p = (u_int *)fp->fr_data; p < pp; p++)
|
||||
fp->fr_cksum += *p;
|
||||
|
||||
WRITE_ENTER(&softc->ipf_mutex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue