/* Initialize the target. */
static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
struct ipt_connmark_target_info *markinfo
= (struct ipt_connmark_target_info *)(*target)->data;
/* Prints out the target info. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target,
+ const struct xt_entry_target *target,
int numeric)
{
const struct ipt_connmark_target_info *markinfo =
/* Saves the target into in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
{
const struct ipt_connmark_target_info *markinfo =
(const struct ipt_connmark_target_info *)target->data;
};
static int parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ip6t_entry *entry, struct ip6t_entry_target **target)
+ const struct ip6t_entry *entry, struct xt_entry_target **target)
{
struct xt_connsecmark_target_info *info =
(struct xt_connsecmark_target_info*)(*target)->data;
}
static void print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target, int numeric)
+ const struct xt_entry_target *target, int numeric)
{
struct xt_connsecmark_target_info *info =
(struct xt_connsecmark_target_info*)(target)->data;
print_connsecmark(info);
}
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
{
struct xt_connsecmark_target_info *info =
(struct xt_connsecmark_target_info*)target->data;
#define IP6T_HL_USED 1
-static void init(struct ip6t_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
{
}
static int parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
struct ip6t_HL_info *info = (struct ip6t_HL_info *) (*target)->data;
unsigned int value;
}
static void save(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target)
+ const struct xt_entry_target *target)
{
const struct ip6t_HL_info *info =
(struct ip6t_HL_info *) target->data;
}
static void print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target, int numeric)
+ const struct xt_entry_target *target, int numeric)
{
const struct ip6t_HL_info *info =
(struct ip6t_HL_info *) target->data;
/* Initialize the target. */
static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
{
struct ip6t_log_info *loginfo = (struct ip6t_log_info *)t->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
struct ip6t_log_info *loginfo = (struct ip6t_log_info *)(*target)->data;
/* Prints out the targinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target,
+ const struct xt_entry_target *target,
int numeric)
{
const struct ip6t_log_info *loginfo
/* Saves the union ip6t_targinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
{
const struct ip6t_log_info *loginfo
= (const struct ip6t_log_info *)target->data;
/* Initialize the target. */
static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
struct ip6t_mark_target_info *markinfo
= (struct ip6t_mark_target_info *)(*target)->data;
/* Prints out the targinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target,
+ const struct xt_entry_target *target,
int numeric)
{
const struct ip6t_mark_target_info *markinfo =
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
{
const struct ip6t_mark_target_info *markinfo =
(const struct ip6t_mark_target_info *)target->data;
#include <linux/netfilter_ipv6/ip6_tables.h>
#include <linux/netfilter_ipv4/ipt_NFQUEUE.h>
-static void init(struct ip6t_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
struct ipt_NFQ_info *tinfo
= (struct ipt_NFQ_info *)(*target)->data;
/* Prints out the targinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target,
+ const struct xt_entry_target *target,
int numeric)
{
const struct ipt_NFQ_info *tinfo =
/* Saves the union ip6t_targinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
{
const struct ipt_NFQ_info *tinfo =
(const struct ipt_NFQ_info *)target->data;
/* Allocate and initialize the target. */
static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
{
struct ip6t_reject_info *reject = (struct ip6t_reject_info *)t->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
struct ip6t_reject_info *reject =
(struct ip6t_reject_info *)(*target)->data;
/* Prints out ipt_reject_info. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target,
+ const struct xt_entry_target *target,
int numeric)
{
const struct ip6t_reject_info *reject
/* Saves ipt_reject in parsable form to stdout. */
static void save(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target)
+ const struct xt_entry_target *target)
{
const struct ip6t_reject_info *reject
= (const struct ip6t_reject_info *)target->data;
};
/* Initialize the target. */
-static void init(struct ip6t_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t, unsigned int *nfcache)
{ }
/*
* ate an option.
*/
static int parse(int c, char **argv, int invert, unsigned int *flags,
- const struct ip6t_entry *entry, struct ip6t_entry_target **target)
+ const struct ip6t_entry *entry, struct xt_entry_target **target)
{
struct xt_secmark_target_info *info =
(struct xt_secmark_target_info*)(*target)->data;
}
static void print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_target *target, int numeric)
+ const struct xt_entry_target *target, int numeric)
{
struct xt_secmark_target_info *info =
(struct xt_secmark_target_info*)(target)->data;
}
/* Saves the target info in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
{
struct xt_secmark_target_info *info =
(struct xt_secmark_target_info*)target->data;
#include <linux/netfilter_ipv6/ip6t_TCPMSS.h>
struct mssinfo {
- struct ip6t_entry_target t;
+ struct xt_entry_target t;
struct ip6t_tcpmss_info mss;
};
/* Initialize the target. */
static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
struct ip6t_tcpmss_info *mssinfo
= (struct ip6t_tcpmss_info *)(*target)->data;
/* Prints out the targinfo. */
static void
print(const struct ip6t_ip6 *ip6,
- const struct ip6t_entry_target *target,
+ const struct xt_entry_target *target,
int numeric)
{
const struct ip6t_tcpmss_info *mssinfo =
/* Saves the union ip6t_targinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_target *target)
{
const struct ip6t_tcpmss_info *mssinfo =
(const struct ip6t_tcpmss_info *)target->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_ah *ahinfo = (struct ip6t_ah *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_ah *ahinfo = (struct ip6t_ah *)(*match)->data;
/* Prints out the union ip6t_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_ah *ah = (struct ip6t_ah *)match->data;
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_ah *ahinfo = (struct ip6t_ah *)match->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry, unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct condition6_info *info =
(struct condition6_info *) (*match)->data;
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct condition6_info *info =
(const struct condition6_info *) match->data;
static void
save(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match)
+ const struct xt_entry_match *match)
{
const struct condition6_info *info =
(const struct condition6_info *) match->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
/* Can't cache this. */
*nfcache |= NFC_UNKNOWN;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ipt_connmark_info *markinfo = (struct ipt_connmark_info *)(*match)->data;
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
struct ipt_connmark_info *info = (struct ipt_connmark_info *)match->data;
/* Saves the matchinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
struct ipt_connmark_info *info = (struct ipt_connmark_info *)match->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)(*match)->data;
/* Prints out the union ip6t_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_esp *espinfo = (struct ip6t_esp *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_esp *espinfo = (struct ip6t_esp *)(*match)->data;
/* Prints out the union ip6t_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_esp *esp = (struct ip6t_esp *)match->data;
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_esp *espinfo = (struct ip6t_esp *)match->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
return 0;
}
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
printf("eui64 ");
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
}
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_frag *fraginfo = (struct ip6t_frag *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_frag *fraginfo = (struct ip6t_frag *)(*match)->data;
/* Prints out the union ip6t_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_frag *frag = (struct ip6t_frag *)match->data;
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_frag *fraginfo = (struct ip6t_frag *)match->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)(*match)->data;
/* Prints out the union ip6t_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_opts *optinfo = (struct ip6t_opts *)match->data;
static int parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry, unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_hl_info *info = (struct ip6t_hl_info *) (*match)->data;
u_int8_t value;
}
static void print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
static const char *op[] = {
}
static void save(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match)
+ const struct xt_entry_match *match)
{
static const char *op[] = {
[IP6T_HL_EQ] = "eq",
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)(*match)->data;
/* Prints out the union ipt_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
const struct ip6t_icmp *icmpv6 = (struct ip6t_icmp *)match->data;
}
/* Saves the match in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_icmp *icmpv6 = (struct ip6t_icmp *)match->data;
};
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_ipv6header_info *info = (struct ip6t_ipv6header_info *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_ipv6header_info *info = (struct ip6t_ipv6header_info *)(*match)->data;
/* Prints out the match */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
const struct ip6t_ipv6header_info *info = (const struct ip6t_ipv6header_info *)match->data;
/* Saves the match */
static void
save(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match)
+ const struct xt_entry_match *match)
{
const struct ip6t_ipv6header_info *info = (const struct ip6t_ipv6header_info *)match->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_length_info *info = (struct ip6t_length_info *)(*match)->data;
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
printf("length ");
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
printf("--length ");
print_length((struct ip6t_length_info *)match->data);
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)(*match)->data;
unsigned int num;
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)match->data;
}
/* FIXME: Make minimalist: only print rate if not default --RR */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
struct ip6t_rateinfo *r = (struct ip6t_rateinfo *)match->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_mac_info *macinfo = (struct ip6t_mac_info *)(*match)->data;
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
printf("MAC ");
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
if (((struct ip6t_mac_info *)match->data)->invert)
printf("! ");
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_mark_info *markinfo = (struct ip6t_mark_info *)(*match)->data;
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
struct ip6t_mark_info *info = (struct ip6t_mark_info *)match->data;
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
struct ip6t_mark_info *info = (struct ip6t_mark_info *)match->data;
print_types_all();
}
-static void init(struct ip6t_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_mh *mhinfo = (struct ip6t_mh *)m->data;
static int parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_mh *mhinfo = (struct ip6t_mh *)(*match)->data;
}
static void print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
const struct ip6t_mh *mhinfo = (struct ip6t_mh *)match->data;
mhinfo->invflags & ~IP6T_MH_INV_MASK);
}
-static void save(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_mh *mhinfo = (struct ip6t_mh *)match->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
}
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
const char *proto;
struct ip6t_multiport *multiinfo
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
const struct ip6t_multiport *multiinfo
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_multiport *multiinfo
= (const struct ip6t_multiport *)match->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_owner_info *ownerinfo = (struct ip6t_owner_info *)(*match)->data;
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
struct ip6t_owner_info *info = (struct ip6t_owner_info *)match->data;
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
struct ip6t_owner_info *info = (struct ip6t_owner_info *)match->data;
};
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
}
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_physdev_info *info =
(struct ip6t_physdev_info*)(*match)->data;
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
struct ip6t_physdev_info *info =
printf(" ");
}
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
struct ip6t_physdev_info *info =
(struct ip6t_physdev_info*)match->data;
/* End duplicated code from ip6tables.c */
-static void init(struct ip6t_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m, unsigned int *nfcache)
{
*nfcache |= NFC_UNKNOWN;
}
static int parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_policy_info *info = (void *)(*match)->data;
struct ip6t_policy_elem *e = &info->pol[info->len];
}
static void print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
const struct ip6t_policy_info *info = (void *)match->data;
printf("\n");
}
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_policy_info *info = (void *)match->data;
unsigned int i;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_rt *rtinfo = (struct ip6t_rt *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_rt *rtinfo = (struct ip6t_rt *)(*match)->data;
/* Prints out the union ip6t_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_rt *rtinfo = (struct ip6t_rt *)match->data;
}
/* Saves the union ip6t_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_rt *rtinfo = (struct ip6t_rt *)match->data;
/* Initialize the target. */
static void
-init(struct ip6t_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t, unsigned int *nfcache)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
- struct ip6t_entry_target **target)
+ struct xt_entry_target **target)
{
return 0;
}
/* Saves the targinfo in parsable form to stdout. */
static void
-save(const struct ip6t_ip6 *ip6, const struct ip6t_entry_target *target)
+save(const struct ip6t_ip6 *ip6, const struct xt_entry_target *target)
{
}
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ipt_state_info *sinfo = (struct ipt_state_info *)(*match)->data;
/* Prints out the matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match,
+ const struct xt_entry_match *match,
int numeric)
{
struct ipt_state_info *sinfo = (struct ipt_state_info *)match->data;
}
/* Saves the matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
struct ipt_state_info *sinfo = (struct ipt_state_info *)match->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_tcp *tcpinfo = (struct ip6t_tcp *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_tcp *tcpinfo = (struct ip6t_tcp *)(*match)->data;
/* Prints out the union ipt_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_tcp *tcp = (struct ip6t_tcp *)match->data;
}
/* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_tcp *tcpinfo = (struct ip6t_tcp *)match->data;
/* Initialize the match. */
static void
-init(struct ip6t_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m, unsigned int *nfcache)
{
struct ip6t_udp *udpinfo = (struct ip6t_udp *)m->data;
parse(int c, char **argv, int invert, unsigned int *flags,
const struct ip6t_entry *entry,
unsigned int *nfcache,
- struct ip6t_entry_match **match)
+ struct xt_entry_match **match)
{
struct ip6t_udp *udpinfo = (struct ip6t_udp *)(*match)->data;
/* Prints out the union ipt_matchinfo. */
static void
print(const struct ip6t_ip6 *ip,
- const struct ip6t_entry_match *match, int numeric)
+ const struct xt_entry_match *match, int numeric)
{
const struct ip6t_udp *udp = (struct ip6t_udp *)match->data;
}
/* Saves the union ipt_matchinfo in parsable form to stdout. */
-static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
+static void save(const struct ip6t_ip6 *ip, const struct xt_entry_match *match)
{
const struct ip6t_udp *udpinfo = (struct ip6t_udp *)match->data;