Module Name:    src
Committed By:   maxv
Date:           Thu Feb  8 10:03:52 UTC 2018

Modified Files:
        src/sys/netinet: ip_reass.c

Log Message:
Change the error stat from IP_STAT_BADFRAGS to IP_STAT_TOOLONG. The
ping_of_death ATF test expects this counter to get increased.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/netinet/ip_reass.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/ip_reass.c
diff -u src/sys/netinet/ip_reass.c:1.12 src/sys/netinet/ip_reass.c:1.13
--- src/sys/netinet/ip_reass.c:1.12	Tue Feb  6 15:48:02 2018
+++ src/sys/netinet/ip_reass.c	Thu Feb  8 10:03:52 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_reass.c,v 1.12 2018/02/06 15:48:02 maxv Exp $	*/
+/*	$NetBSD: ip_reass.c,v 1.13 2018/02/08 10:03:52 maxv Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1988, 1993
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_reass.c,v 1.12 2018/02/06 15:48:02 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_reass.c,v 1.13 2018/02/08 10:03:52 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -630,7 +630,7 @@ ip_reass_packet(struct mbuf **m0, struct
 	}
 
 	if (off + len > IP_MAXPACKET) {
-		IP_STATINC(IP_STAT_BADFRAGS);
+		IP_STATINC(IP_STAT_TOOLONG);
 		return EINVAL;
 	}
 

Reply via email to