Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf Fix bug I introduced in previous commit.
details: https://anonhg.NetBSD.org/src/rev/81b93704e6b3
branches: trunk
changeset: 321858:81b93704e6b3
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Apr 08 05:51:45 2018 +0000
description:
Fix bug I introduced in previous commit.
diffstat:
sys/net/npf/npf_inet.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e3253f22fe1b -r 81b93704e6b3 sys/net/npf/npf_inet.c
--- a/sys/net/npf/npf_inet.c Sun Apr 08 01:30:01 2018 +0000
+++ b/sys/net/npf/npf_inet.c Sun Apr 08 05:51:45 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_inet.c,v 1.49 2018/04/07 09:06:26 maxv Exp $ */
+/* $NetBSD: npf_inet.c,v 1.50 2018/04/08 05:51:45 maxv Exp $ */
/*-
* Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#ifdef _KERNEL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.49 2018/04/07 09:06:26 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.50 2018/04/08 05:51:45 maxv Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -287,7 +287,7 @@
}
break;
case TCPOPT_WINDOW:
- if (optlen != TCPOLEN_MAXSEG)
+ if (optlen != TCPOLEN_WINDOW)
continue;
val = *(cp + 2);
*wscale = (val > TCP_MAX_WINSHIFT) ? TCP_MAX_WINSHIFT : val;
Home |
Main Index |
Thread Index |
Old Index