netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Add revision field for xt_entry_target
@ 2015-02-06  7:26 Gao feng
  2015-02-06  7:26 ` [PATCH 2/3] Add MARK target for arptables Gao feng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gao feng @ 2015-02-06  7:26 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo, Gao feng

This filed is useful if we want to add TARGET which
has revision for arptables rules.

Also make sure xt_entry_target is consistent with
the definition in kernel.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
---
 include/linux/netfilter_arp/arp_tables.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h
index 0acda66..ccf8cd0 100644
--- a/include/linux/netfilter_arp/arp_tables.h
+++ b/include/linux/netfilter_arp/arp_tables.h
@@ -19,7 +19,7 @@
 
 #include <linux/netfilter_arp.h>
 
-#define ARPT_FUNCTION_MAXNAMELEN 30
+#define ARPT_FUNCTION_MAXNAMELEN 29
 #define ARPT_TABLE_MAXNAMELEN 32
 
 #define ARPT_DEV_ADDR_LEN_MAX 16
@@ -69,6 +69,8 @@ struct arpt_entry_target
 
 			/* Used by userspace */
 			char name[ARPT_FUNCTION_MAXNAMELEN];
+
+			u_int8_t revision;
 		} user;
 		struct {
 			u_int16_t target_size;
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-11 15:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-06  7:26 [PATCH 1/3] Add revision field for xt_entry_target Gao feng
2015-02-06  7:26 ` [PATCH 2/3] Add MARK target for arptables Gao feng
2015-02-10 23:18   ` Pablo Neira Ayuso
2015-02-11  8:58     ` Gao feng
2015-02-06  7:26 ` [PATCH 3/3] Update the manpage for MARK target Gao feng
2015-02-11 15:52 ` [PATCH 1/3] Add revision field for xt_entry_target Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).