Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/external/bsd/ipf/netinet Pull up following revision(s...



details:   https://anonhg.NetBSD.org/src/rev/926e55c18e20
branches:  netbsd-8
changeset: 453765:926e55c18e20
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Aug 09 19:21:04 2019 +0000

description:
Pull up following revision(s) (requested by christos in ticket #1331):

        sys/external/bsd/ipf/netinet/fil.c: revision 1.30

PR/54443: Edgar Fu?: ipf mistakenly regards UDP packet with checksum field
0xffff as bad

diffstat:

 sys/external/bsd/ipf/netinet/fil.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r f1217ea6de62 -r 926e55c18e20 sys/external/bsd/ipf/netinet/fil.c
--- a/sys/external/bsd/ipf/netinet/fil.c        Wed Aug 07 08:22:41 2019 +0000
+++ b/sys/external/bsd/ipf/netinet/fil.c        Fri Aug 09 19:21:04 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fil.c,v 1.20.4.2 2018/12/26 13:18:53 martin Exp $      */
+/*     $NetBSD: fil.c,v 1.20.4.3 2019/08/09 19:21:04 martin Exp $      */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -138,7 +138,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.20.4.2 2018/12/26 13:18:53 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.20.4.3 2019/08/09 19:21:04 martin Exp $");
 #else
 static const char sccsid[] = "@(#)fil.c        1.36 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: fil.c,v 1.1.1.2 2012/07/22 13:45:07 darrenr Exp $";
@@ -6527,8 +6527,11 @@
                /*NOTREACHED*/
        }
 
-       if (csump != NULL)
+       if (csump != NULL) {
                hdrsum = *csump;
+               if (fin->fin_p == IPPROTO_UDP && hdrsum == 0xffff)
+                       hdrsum = 0x0000;
+       }
 
        if (dosum) {
                sum = fr_cksum(fin, fin->fin_ip, fin->fin_p, fin->fin_dp);



Home | Main Index | Thread Index | Old Index