summaryrefslogtreecommitdiff
path: root/pcap_mm.c
diff options
context:
space:
mode:
authorChristian Wiese <chris@opensde.org>2014-04-12 00:56:37 +0200
committerDaniel Borkmann <dborkman@redhat.com>2014-04-12 11:27:20 +0200
commita4772aa046708acfafdf2957ed756d076821bba5 (patch)
treef0575a694f064b775a04226663edf3ab237b721d /pcap_mm.c
parentb8bb2e21ec3a685dde73565e822b5ff915cc316d (diff)
built_in: changed to use RUNTIME_PAGE_SIZE instead of PAGE_SIZE
References: https://github.com/netsniff-ng/netsniff-ng/commit/453f6eb9d79dd5aa2812ef956b22723f0a493086 https://github.com/netsniff-ng/netsniff-ng/pull/112 Signed-off-by: Christian Wiese <chris@opensde.org> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'pcap_mm.c')
-rw-r--r--pcap_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap_mm.c b/pcap_mm.c
index 0c4114e..5b3cfcb 100644
--- a/pcap_mm.c
+++ b/pcap_mm.c
@@ -91,7 +91,7 @@ static inline off_t ____get_map_size(bool jumbo)
{
int allocsz = jumbo ? 16 : 3;
- return PAGE_ALIGN(sizeof(struct pcap_filehdr) + (PAGE_SIZE * allocsz) * 1024);
+ return PAGE_ALIGN(sizeof(struct pcap_filehdr) + (RUNTIME_PAGE_SIZE * allocsz) * 1024);
}
static void __pcap_mm_prepare_access_wr(int fd, bool jumbo)