Sisyphus repository
Last update: 19 may 2019 | SRPMs: 17692 | Visits: 13566671
en ru br
ALT Linux repos
S:2.3-alt1.k.267052.1

Group :: System/Kernel and hardware
RPM: kernel-modules-ipt_netflow-std-pae

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ipt_netflow-3.11.patch
Download


--- ipt_NETFLOW.c.orig	2013-09-06 12:07:01.036269265 +0000
+++ ipt_NETFLOW.c	2013-09-06 12:07:39.818918591 +0000
@@ -1403,9 +1403,9 @@
 
 	/* determine hash size (idea from nf_conntrack_core.c) */
 	if (!hashsize) {
-		hashsize = (((num_physpages << PAGE_SHIFT) / 16384)
+		hashsize = (((get_num_physpages() << PAGE_SHIFT) / 16384)
 					 / sizeof(struct hlist_head));
-		if (num_physpages > (1024 * 1024 * 1024 / PAGE_SIZE))
+		if (get_num_physpages() > (1024 * 1024 * 1024 / PAGE_SIZE))
 			hashsize = 8192;
 	}
 	if (hashsize < 16)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin