Fix bug I introduced in previous commit. trunk
authormaxv <maxv@NetBSD.org>
Sun, 08 Apr 2018 05:51:45 +0000
branchtrunk
changeset 317890 e3c812b0666f
parent 317889 39ddc5707f9e
child 317891 b1c729f5019a
Fix bug I introduced in previous commit.
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;