}
static const char *
-check_proto(const struct ip6t_entry *entry)
+check_proto(const void *e)
{
+ const struct ip6t_entry *entry = e;
char *proto;
if ((proto = proto_to_name(entry->ipv6.proto)) != NULL)
ate an option */
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ip6t_entry *entry,
+ const void *e,
unsigned int *nfcache,
struct xt_entry_match **match)
{
+ const struct ip6t_entry *entry = e;
const char *proto;
struct ip6t_multiport *multiinfo
= (struct ip6t_multiport *)(*match)->data;
static int
parse_v1(int c, char **argv, int invert, unsigned int *flags,
- const struct ip6t_entry *entry,
+ const void *e,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
+ const struct ip6t_entry *entry = e;
const char *proto;
struct ip6t_multiport_v1 *multiinfo
= (struct ip6t_multiport_v1 *)(*match)->data;
/* Prints out the matchinfo. */
static void
-print(const struct ip6t_ip6 *ip,
+print(const void *ip_void,
const struct xt_entry_match *match,
int numeric)
{
+ const struct ip6t_ip6 *ip = ip_void;
const struct ip6t_multiport *multiinfo
= (const struct ip6t_multiport *)match->data;
unsigned int i;
}
static void
-print_v1(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+print_v1(const void *ip_void,
+ const struct xt_entry_match *match,
int numeric)
{
+ const struct ip6t_ip6 *ip = ip_void;
const struct ip6t_multiport_v1 *multiinfo
= (const struct ip6t_multiport_v1 *)match->data;
unsigned int i;
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
+static void save(const void *ip_void, const struct xt_entry_match *match)
{
+ const struct ip6t_ip6 *ip = ip_void;
const struct ip6t_multiport *multiinfo
= (const struct ip6t_multiport *)match->data;
unsigned int i;
printf(" ");
}
-static void save_v1(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match)
+static void save_v1(const void *ip_void, const struct xt_entry_match *match)
{
+ const struct ip6t_ip6 *ip = ip_void;
const struct ip6t_multiport_v1 *multiinfo
= (const struct ip6t_multiport_v1 *)match->data;
unsigned int i;
ate an option */
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *e,
struct xt_entry_target **target)
{
+ const struct ipt_entry *entry = e;
struct ipt_natinfo *info = (void *)*target;
int portok;
/* Prints out the targinfo. */
static void
-print(const struct ipt_ip *ip,
+print(const void *ip,
const struct xt_entry_target *target,
int numeric)
{
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void
-save(const struct ipt_ip *ip, const struct xt_entry_target *target)
+save(const void *ip, const struct xt_entry_target *target)
{
struct ipt_natinfo *info = (void *)target;
unsigned int i = 0;
ate an option */
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *e,
struct xt_entry_target **target)
{
+ const struct ipt_entry *entry = e;
int portok;
struct ip_nat_multi_range *mr
= (struct ip_nat_multi_range *)(*target)->data;
/* Prints out the targinfo. */
static void
-print(const struct ipt_ip *ip,
+print(const void *ip,
const struct xt_entry_target *target,
int numeric)
{
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void
-save(const struct ipt_ip *ip, const struct xt_entry_target *target)
+save(const void *ip, const struct xt_entry_target *target)
{
struct ip_nat_multi_range *mr
= (struct ip_nat_multi_range *)target->data;
ate an option */
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *e,
struct xt_entry_target **target)
{
+ const struct ipt_entry *entry = e;
struct ip_nat_multi_range *mr
= (struct ip_nat_multi_range *)(*target)->data;
int portok;
/* Prints out the targinfo. */
static void
-print(const struct ipt_ip *ip,
+print(const void *ip,
const struct xt_entry_target *target,
int numeric)
{
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void
-save(const struct ipt_ip *ip, const struct xt_entry_target *target)
+save(const void *ip, const struct xt_entry_target *target)
{
struct ip_nat_multi_range *mr
= (struct ip_nat_multi_range *)target->data;
ate an option */
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *e,
struct xt_entry_target **target)
{
+ const struct ipt_entry *entry = e;
struct ipt_natinfo *info = (void *)*target;
int portok;
/* Prints out the targinfo. */
static void
-print(const struct ipt_ip *ip,
+print(const void *ip,
const struct xt_entry_target *target,
int numeric)
{
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void
-save(const struct ipt_ip *ip, const struct xt_entry_target *target)
+save(const void *ip, const struct xt_entry_target *target)
{
struct ipt_natinfo *info = (void *)target;
unsigned int i = 0;
}
static const char *
-check_proto(const struct ipt_entry *entry)
+check_proto(const void *e)
{
+ const struct ipt_entry *entry = e;
char *proto;
if (entry->ip.invflags & IPT_INV_PROTO)
ate an option */
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *e,
unsigned int *nfcache,
struct xt_entry_match **match)
{
+ const struct ipt_entry *entry = e;
const char *proto;
struct ipt_multiport *multiinfo
= (struct ipt_multiport *)(*match)->data;
static int
parse_v1(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *e,
unsigned int *nfcache,
struct xt_entry_match **match)
{
+ const struct ipt_entry *entry = e;
const char *proto;
struct ipt_multiport_v1 *multiinfo
= (struct ipt_multiport_v1 *)(*match)->data;
/* Prints out the matchinfo. */
static void
-print(const struct ipt_ip *ip,
+print(const void *ip_void,
const struct xt_entry_match *match,
int numeric)
{
+ const struct ipt_ip *ip = ip_void;
const struct ipt_multiport *multiinfo
= (const struct ipt_multiport *)match->data;
unsigned int i;
}
static void
-print_v1(const struct ipt_ip *ip,
+print_v1(const void *ip_void,
const struct xt_entry_match *match,
int numeric)
{
+ const struct ipt_ip *ip = ip_void;
const struct ipt_multiport_v1 *multiinfo
= (const struct ipt_multiport_v1 *)match->data;
unsigned int i;
}
/* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ipt_ip *ip, const struct xt_entry_match *match)
+static void save(const void *ip_void, const struct xt_entry_match *match)
{
+ const struct ipt_ip *ip = ip_void;
const struct ipt_multiport *multiinfo
= (const struct ipt_multiport *)match->data;
unsigned int i;
printf(" ");
}
-static void save_v1(const struct ipt_ip *ip,
+static void save_v1(const void *ip_void,
const struct xt_entry_match *match)
{
+ const struct ipt_ip *ip = ip_void;
const struct ipt_multiport_v1 *multiinfo
= (const struct ipt_multiport_v1 *)match->data;
unsigned int i;