Skip to contentSkip to conversation

netfilter: Prepare xt_hashlimit.c for revision 2

PATCH Superseded Vishwanath Pai 1 participant 1 message Sep 22, 2016

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 netfilter: Prepare xt_hashlimit.c for revision 2

I am planning to add a revision 2 for the hashlimit xtables module to support higher packets per second rates. This patch renames all the functions and variables related to revision 1 by adding _v1 at the end of the names.

---
 include/uapi/linux/netfilter/xt_hashlimit.h |  2 +-
 net/netfilter/xt_hashlimit.c                | 61 +++++++++++++++--------------
 2 files changed, 32 insertions(+), 31 deletions(-)
include/uapi/linux/netfilter/xt_hashlimit.h +1 -1
index 6db9037..ea8c1c0 100644
@@ -5,7 +5,7 @@
 #include <linux/if.h>
 
 /* timings are in milliseconds. */
-#define XT_HASHLIMIT_SCALE 10000
+#define XT_HASHLIMIT_SCALE_v1 10000
 /* 1/10,000 sec period => max of 10,000/sec.  Min rate is then 429490
  * seconds, or one packet every 59 hours.
  */
net/netfilter/xt_hashlimit.c +31 -30

179 lines not on this page · raw message

Signature · 1 line
1.9.1