Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf /32 and /128 are valid netmasks.
details: https://anonhg.NetBSD.org/src/rev/9ed98a8d35c7
branches: trunk
changeset: 344793:9ed98a8d35c7
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 20 15:46:08 2016 +0000
description:
/32 and /128 are valid netmasks.
diffstat:
sys/net/npf/npf_tableset.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 703adcbbdefe -r 9ed98a8d35c7 sys/net/npf/npf_tableset.c
--- a/sys/net/npf/npf_tableset.c Wed Apr 20 14:00:16 2016 +0000
+++ b/sys/net/npf/npf_tableset.c Wed Apr 20 15:46:08 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_tableset.c,v 1.22 2014/08/11 01:54:12 rmind Exp $ */
+/* $NetBSD: npf_tableset.c,v 1.23 2016/04/20 15:46:08 christos Exp $ */
/*-
* Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.22 2014/08/11 01:54:12 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.23 2016/04/20 15:46:08 christos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -453,7 +453,7 @@
* For IPv4 (aidx = 0) - 32 and for IPv6 (aidx = 1) - 128.
* If it is a host - shall use NPF_NO_NETMASK.
*/
- if (mask >= (aidx ? 128 : 32) && mask != NPF_NO_NETMASK) {
+ if (mask > (aidx ? 128 : 32) && mask != NPF_NO_NETMASK) {
return EINVAL;
}
return 0;
Home |
Main Index |
Thread Index |
Old Index