Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Change the error stat from IP_STAT_BADFRAGS to I...
details: https://anonhg.NetBSD.org/src/rev/bc1c8c4dca7e
branches: trunk
changeset: 359371:bc1c8c4dca7e
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Feb 08 10:03:52 2018 +0000
description:
Change the error stat from IP_STAT_BADFRAGS to IP_STAT_TOOLONG. The
ping_of_death ATF test expects this counter to get increased.
diffstat:
sys/netinet/ip_reass.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bd569111e5f2 -r bc1c8c4dca7e sys/netinet/ip_reass.c
--- a/sys/netinet/ip_reass.c Thu Feb 08 09:56:19 2018 +0000
+++ b/sys/netinet/ip_reass.c Thu Feb 08 10:03:52 2018 +0000
@@ -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 @@
}
if (off + len > IP_MAXPACKET) {
- IP_STATINC(IP_STAT_BADFRAGS);
+ IP_STATINC(IP_STAT_TOOLONG);
return EINVAL;
}
Home |
Main Index |
Thread Index |
Old Index