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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ring.h') diff --git a/ring.h b/ring.h index 9522410..d3ccc04 100644 --- a/ring.h +++ b/ring.h @@ -100,7 +100,7 @@ static inline void ring_verify_layout(struct ring *ring) { bug_on(ring->layout.tp_block_size < ring->layout.tp_frame_size); bug_on((ring->layout.tp_block_size % ring->layout.tp_frame_size) != 0); - bug_on((ring->layout.tp_block_size % getpagesize()) != 0); + bug_on((ring->layout.tp_block_size % RUNTIME_PAGE_SIZE) != 0); } static inline void tpacket_hdr_clone(struct tpacket2_hdr *thdrd, -- cgit v1.2.3-54-g00ecf eanup'>emaclite-cleanup net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ModeNameSize