浏览代码

[NETFILTER]: arp_tables: fix userspace compilation

The included patch translates arpt_counters to xt_counters, making
userspace arptables compile against recent kernels.

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Bart De Schuymer 19 年之前
父节点
当前提交
8c82d8df70
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/linux/netfilter_arp/arp_tables.h

+ 1 - 0
include/linux/netfilter_arp/arp_tables.h

@@ -190,6 +190,7 @@ struct arpt_replace
 
 
 /* The argument to ARPT_SO_ADD_COUNTERS. */
 /* The argument to ARPT_SO_ADD_COUNTERS. */
 #define arpt_counters_info xt_counters_info
 #define arpt_counters_info xt_counters_info
+#define arpt_counters xt_counters
 
 
 /* The argument to ARPT_SO_GET_ENTRIES. */
 /* The argument to ARPT_SO_GET_ENTRIES. */
 struct arpt_get_entries
 struct arpt_get_entries