From 18b5628da718a56fed9628763669da36b5225aa2 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org" Date: Fri, 20 Oct 2006 12:24:34 +0000 Subject: - Add revision support to ip6tables. - Add support port range match to libip6t_multiport (R?mi Denis-Courmont ) --- include/ip6tables.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/ip6tables.h') diff --git a/include/ip6tables.h b/include/ip6tables.h index b1140b3..406f255 100644 --- a/include/ip6tables.h +++ b/include/ip6tables.h @@ -15,6 +15,18 @@ #define IPPROTO_DCCP 33 #endif +#ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */ +#define IP6T_SO_GET_REVISION_MATCH (IP6T_BASE_CTL + 2) +#define IP6T_SO_GET_REVISION_TARGET (IP6T_BASE_CTL + 3) + +struct ip6t_get_revision +{ + char name[IP6T_FUNCTION_MAXNAMELEN-1]; + + u_int8_t revision; +}; +#endif /* IP6T_SO_GET_REVISION_MATCH Old kernel source */ + struct ip6tables_rule_match { struct ip6tables_rule_match *next; @@ -33,6 +45,9 @@ struct ip6tables_match ip6t_chainlabel name; + /* Revision of match (0 by default). */ + u_int8_t revision; + const char *version; /* Size of match data. */ -- cgit v1.2.3