aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-07-30 03:32:39 +0000
committerCy Schubert <cy@FreeBSD.org>2019-07-30 03:32:39 +0000
commitb7a9acc5645ebb625ab6e6fabb454316f9f659f3 (patch)
treefb929e78f2ced585535922399dc46d53f71cf835 /sys/contrib
parent973925ada22242944a32591966d98156480407a4 (diff)
downloadsrc-b7a9acc5645ebb625ab6e6fabb454316f9f659f3.tar.gz
src-b7a9acc5645ebb625ab6e6fabb454316f9f659f3.zip
MFC r350064:
As of upstream fil.c CVS r1.53 (March 1, 2009), prior to the import of ipfilter 5.1.2 into FreeBSD-10, the fix for, 2580062 from/to targets should be able to use any interface name, moved frentry.fr_cksum to prior to frentry.fr_func thereby making this code redundant. After investigating whether this fix to move fr_cksum was correct and if it broke anything, it has been determined that the fix is correct and this code is redundant. We remove it here.
Notes
Notes: svn path=/stable/11/; revision=350434
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/ipfilter/netinet/fil.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c
index eface09be2ca..f1c2e34e0cfd 100644
--- a/sys/contrib/ipfilter/netinet/fil.c
+++ b/sys/contrib/ipfilter/netinet/fil.c
@@ -4922,9 +4922,6 @@ frrequest(softc, unit, req, data, set, makecopy)
* the constant part of the filter rule to make comparisons quicker
* (this meaning no pointers are included).
*/
- for (fp->fr_cksum = 0, p = (u_int *)&fp->fr_func, pp = &fp->fr_cksum;
- p < pp; p++)
- fp->fr_cksum += *p;
pp = (u_int *)(fp->fr_caddr + fp->fr_dsize);
for (p = (u_int *)fp->fr_data; p < pp; p++)
fp->fr_cksum += *p;