Skip to contentSkip to conversation

netfilter: Prepare xt_hashlimit.c for revision 2

PATCH Superseded Vishwanath Pai 1 participant 1 message Jun 2, 2016

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 netfilter: Prepare xt_hashlimit.c for revision 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 +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