From a4772aa046708acfafdf2957ed756d076821bba5 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sat, 12 Apr 2014 00:56:37 +0200 Subject: 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 Signed-off-by: Daniel Borkmann --- ring_rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ring_rx.c') diff --git a/ring_rx.c b/ring_rx.c index 355d10c..59cafd3 100644 --- a/ring_rx.c +++ b/ring_rx.c @@ -46,8 +46,8 @@ void setup_rx_ring_layout(int sock, struct ring *ring, unsigned int size, fmemset(&ring->layout, 0, sizeof(ring->layout)); ring->layout.tp_block_size = (jumbo_support ? - getpagesize() << 4 : - getpagesize() << 2); + RUNTIME_PAGE_SIZE << 4 : + RUNTIME_PAGE_SIZE << 2); ring->layout.tp_frame_size = (jumbo_support ? TPACKET_ALIGNMENT << 12 : -- cgit v1.2.3-54-g00ecf