#define IP6T_HL_USED 1
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{
}
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ip6t_log_info *loginfo = (struct ip6t_log_info *)t->data;
/* Allocate and initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ip6t_reject_info *reject = (struct ip6t_reject_info *)t->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ip6t_ah *ahinfo = (struct ip6t_ah *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_ah *ahinfo = (struct ip6t_ah *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const void *entry, unsigned int *nfcache,
+ const void *entry,
struct xt_entry_match **match)
{
struct condition6_info *info =
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
return 0;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ip6t_frag *fraginfo = (struct ip6t_frag *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_frag *fraginfo = (struct ip6t_frag *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_opts *optinfo = (struct ip6t_opts *)(*match)->data;
}
static int parse(int c, char **argv, int invert, unsigned int *flags,
- const void *entry, unsigned int *nfcache,
+ const void *entry,
struct xt_entry_match **match)
{
struct ip6t_hl_info *info = (struct ip6t_hl_info *) (*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_icmp *icmpv6info = (struct ip6t_icmp *)(*match)->data;
};
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ip6t_ipv6header_info *info = (struct ip6t_ipv6header_info *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_ipv6header_info *info = (struct ip6t_ipv6header_info *)(*match)->data;
print_types_all();
}
-static void init(struct xt_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m)
{
struct ip6t_mh *mhinfo = (struct ip6t_mh *)m->data;
static int parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_mh *mhinfo = (struct ip6t_mh *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_owner_info *ownerinfo = (struct ip6t_owner_info *)(*match)->data;
/* End duplicated code from ip6tables.c */
-static void init(struct xt_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m)
{
- *nfcache |= NFC_UNKNOWN;
}
static int parse_direction(char *s)
static int parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_policy_info *info = (void *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ip6t_rt *rtinfo = (struct ip6t_rt *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ip6t_rt *rtinfo = (struct ip6t_rt *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_state_info *sinfo = (struct ipt_state_info *)(*match)->data;
};
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv4/ipt_ECN.h>
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{
}
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ipt_log_info *loginfo = (struct ipt_log_info *)t->data;
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)t->data;
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)t->data;
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)t->data;
/* Allocate and initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ipt_reject_info *reject = (struct ipt_reject_info *)t->data;
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
struct ipt_same_info *mr = (struct ipt_same_info *)t->data;
};
/* Initialize the target. */
-static void init(struct xt_entry_target *target, unsigned int *nfcache)
+static void init(struct xt_entry_target *target)
{
struct ipt_set_info_target *info =
(struct ipt_set_info_target *) target->data;
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
#define IPT_TTL_USED 1
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{
}
};
/* Initialize the target. */
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{
struct ipt_ulog_info *loginfo = (struct ipt_ulog_info *) t->data;
#define IPT_ADDRTYPE_OPT_DSTTYPE 0x2
static int parse(int c, char **argv, int invert, unsigned int *flags,
- const void *entry, unsigned int *nfcache,
+ const void *entry,
struct xt_entry_match **match)
{
struct ipt_addrtype_info *info =
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ipt_ah *ahinfo = (struct ipt_ah *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_ah *ahinfo = (struct ipt_ah *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
- const void *entry, unsigned int *nfcache,
+ const void *entry,
struct xt_entry_match **match)
{
struct condition_info *info =
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_connrate_info *sinfo = (struct ipt_connrate_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_conntrack_info *sinfo = (struct ipt_conntrack_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
unsigned int result;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct ipt_icmp *icmpinfo = (struct ipt_icmp *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_icmp *icmpinfo = (struct ipt_icmp *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_iprange_info *info = (struct ipt_iprange_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_owner_info *ownerinfo = (struct ipt_owner_info *)(*match)->data;
{ }
};
-static void init(struct xt_entry_match *m, unsigned int *nfcache)
+static void init(struct xt_entry_match *m)
{
- *nfcache |= NFC_UNKNOWN;
}
static int parse_direction(char *s)
static int parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_policy_info *info = (void *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_realm_info *realminfo = (struct ipt_realm_info *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *match, unsigned int *nfcache)
+init(struct xt_entry_match *match)
{
struct ipt_recent_info *info = (struct ipt_recent_info *)(match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_recent_info *info = (struct ipt_recent_info *)(*match)->data;
};
/* Initialize the match. */
-static void init(struct xt_entry_match *match, unsigned int *nfcache)
+static void init(struct xt_entry_match *match)
{
struct ipt_set_info_match *info =
(struct ipt_set_info_match *) match->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache, struct xt_entry_match **match)
+ struct xt_entry_match **match)
{
struct ipt_set_info_match *myinfo =
(struct ipt_set_info_match *) (*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct ipt_tos_info *tosinfo = (struct ipt_tos_info *)(*match)->data;
}
static int parse(int c, char **argv, int invert, unsigned int *flags,
- const void *entry, unsigned int *nfcache,
+ const void *entry,
struct xt_entry_match **match)
{
struct ipt_ttl_info *info = (struct ipt_ttl_info *) (*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
return 0;
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
#include "libipt_dscp_helper.c"
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{
}
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
IPTABLES_VERSION);
}
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{
struct xt_nflog_info *info = (struct xt_nflog_info *)t->data;
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_NFQUEUE.h>
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{
}
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
};
/* Initialize the target. */
-static void init(struct xt_entry_target *t, unsigned int *nfcache)
+static void init(struct xt_entry_target *t)
{ }
/*
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_comment_info *commentinfo = (struct xt_comment_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_connbytes_info *sinfo = (struct xt_connbytes_info *)(*match)->data;
{NULL},
};
-static void connlimit_init(struct ipt_entry_match *match, unsigned int *nfc)
+static void connlimit_init(struct ipt_entry_match *match)
{
struct xt_connlimit_info *info = (void *)match->data;
info->v4_mask = 0xFFFFFFFFUL;
static int connlimit_parse4(int c, char **argv, int invert,
unsigned int *flags, const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
return connlimit_parse(c, argv, invert, flags,
static int connlimit_parse6(int c, char **argv, int invert,
unsigned int *flags, const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
return connlimit_parse(c, argv, invert, flags,
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_connmark_info *markinfo = (struct xt_connmark_info *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m,
- unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct xt_dccp_info *einfo = (struct xt_dccp_info *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_dccp_info *einfo
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_dscp_info *dinfo
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct xt_esp *espinfo = (struct xt_esp *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_esp *espinfo = (struct xt_esp *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct xt_hashlimit_info *r = (struct xt_hashlimit_info *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_hashlimit_info *r =
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_helper_info *info = (struct xt_helper_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_length_info *info = (struct xt_length_info *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct xt_rateinfo *r = (struct xt_rateinfo *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_rateinfo *r = (struct xt_rateinfo *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_mac_info *macinfo = (struct xt_mac_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_mark_info *markinfo = (struct xt_mark_info *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *e,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
const struct ipt_entry *entry = e;
static int
parse6(int c, char **argv, int invert, unsigned int *flags,
const void *e,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
const struct ip6t_entry *entry = (const struct ip6t_entry *)e;
static int
parse_v1(int c, char **argv, int invert, unsigned int *flags,
const void *e,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
const struct ipt_entry *entry = e;
static int
parse6_v1(int c, char **argv, int invert, unsigned int *flags,
const void *e,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
const struct ip6t_entry *entry = (const struct ip6t_entry *)e;
};
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_physdev_info *info =
static int parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_pkttype_info *info = (struct xt_pkttype_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache, struct xt_entry_match **match)
+ struct xt_entry_match **match)
{
struct xt_quota_info *info = (struct xt_quota_info *) (*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m,
- unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
int i;
struct xt_sctp_info *einfo = (struct xt_sctp_info *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_sctp_info *einfo
/* Initialize the target. */
static void
-init(struct xt_entry_target *t, unsigned int *nfcache)
+init(struct xt_entry_target *t)
{
}
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_state_info *sinfo = (struct xt_state_info *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
double prob;
};
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct xt_string_info *i = (struct xt_string_info *) m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_string_info *stringinfo = (struct xt_string_info *)(*match)->data;
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct xt_tcp *tcpinfo = (struct xt_tcp *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_tcp *tcpinfo = (struct xt_tcp *)(*match)->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_tcpmss_match_info *mssinfo =
/* Initialize the match. */
static void
-init(struct xt_entry_match *m, unsigned int *nfcache)
+init(struct xt_entry_match *m)
{
struct xt_udp *udpinfo = (struct xt_udp *)m->data;
static int
parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match)
{
struct xt_udp *udpinfo = (struct xt_udp *)(*match)->data;
void (*help)(void);
/* Initialize the match. */
- void (*init)(struct xt_entry_match *m, unsigned int *nfcache);
+ void (*init)(struct xt_entry_match *m);
/* Function which parses command options; returns true if it
ate an option */
/* entry is struct ipt_entry for example */
int (*parse)(int c, char **argv, int invert, unsigned int *flags,
const void *entry,
- unsigned int *nfcache,
struct xt_entry_match **match);
/* Final check; exit if not ok. */
void (*help)(void);
/* Initialize the target. */
- void (*init)(struct xt_entry_target *t, unsigned int *nfcache);
+ void (*init)(struct xt_entry_target *t);
/* Function which parses command options; returns true if it
ate an option */
target->t->u.target_size = size;
strcpy(target->t->u.user.name, jumpto);
if (target->init != NULL)
- target->init(target->t, &fw.nfcache);
+ target->init(target->t);
opts = merge_options(opts, target->extra_opts, &target->option_offset);
}
break;
strcpy(m->m->u.user.name, m->name);
set_revision(m->m->u.user.name, m->revision);
if (m->init != NULL)
- m->init(m->m, &fw.nfcache);
+ m->init(m->m);
if (m != m->next)
/* Merge options for non-cloned matches */
opts = merge_options(opts, m->extra_opts, &m->option_offset);
argv, invert,
&matchp->match->mflags,
&fw,
- &fw.nfcache,
&matchp->match->m))
break;
}
set_revision(m->m->u.user.name,
m->revision);
if (m->init != NULL)
- m->init(m->m, &fw.nfcache);
+ m->init(m->m);
opts = merge_options(opts,
m->extra_opts, &m->option_offset);
target->t->u.target_size = size;
strcpy(target->t->u.user.name, jumpto);
if (target->init != NULL)
- target->init(target->t, &fw.nfcache);
+ target->init(target->t);
}
if (!target) {
set_revision(target->t->u.user.name,
target->revision);
if (target->init != NULL)
- target->init(target->t, &fw.nfcache);
+ target->init(target->t);
opts = merge_options(opts, target->extra_opts, &target->option_offset);
}
break;
strcpy(m->m->u.user.name, m->name);
set_revision(m->m->u.user.name, m->revision);
if (m->init != NULL)
- m->init(m->m, &fw.nfcache);
+ m->init(m->m);
if (m != m->next)
/* Merge options for non-cloned matches */
opts = merge_options(opts, m->extra_opts, &m->option_offset);
argv, invert,
&matchp->match->mflags,
&fw,
- &fw.nfcache,
&matchp->match->m))
break;
}
set_revision(m->m->u.user.name,
m->revision);
if (m->init != NULL)
- m->init(m->m, &fw.nfcache);
+ m->init(m->m);
opts = merge_options(opts,
m->extra_opts, &m->option_offset);
set_revision(target->t->u.user.name,
target->revision);
if (target->init != NULL)
- target->init(target->t, &fw.nfcache);
+ target->init(target->t);
}
if (!target) {
printf("Invflags: %02X\n", e->ip.invflags);
printf("Counters: %llu packets, %llu bytes\n",
(unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt);
- printf("Cache: %08X ", e->nfcache);
- if (e->nfcache & NFC_ALTERED) printf("ALTERED ");
- if (e->nfcache & NFC_UNKNOWN) printf("UNKNOWN ");
- printf("\n");
+ printf("Cache: %08X\n", e->nfcache);
IPT_MATCH_ITERATE(e, print_match);
return NULL;
}
- if (a->nfcache != b->nfcache
- || a->target_offset != b->target_offset
+ if (a->target_offset != b->target_offset
|| a->next_offset != b->next_offset)
return NULL;
printf("Invflags: %02X\n", e->ipv6.invflags);
printf("Counters: %llu packets, %llu bytes\n",
(unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt);
- printf("Cache: %08X ", e->nfcache);
- if (e->nfcache & NFC_ALTERED) printf("ALTERED ");
- if (e->nfcache & NFC_UNKNOWN) printf("UNKNOWN ");
- printf("\n");
+ printf("Cache: %08X\n", e->nfcache);
IP6T_MATCH_ITERATE(e, print_match);
return NULL;
}
- if (a->nfcache != b->nfcache
- || a->target_offset != b->target_offset
+ if (a->target_offset != b->target_offset
|| a->next_offset != b->next_offset)
return NULL;