summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2013-07-25 20:16:21 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:41 +0100
commitc846f1ab08906c7673dfc5b79cd3d20219f0b359 (patch)
treed6a78495102010e6f3558c261153c63f7bb6dd3c /iptables
parentf8781d3da3943a0fc10212e77cdbcd0697943596 (diff)
nft: Remove useless function
Likely to be a leftover from the initial bootstrap. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/nft.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index df4122cb..3db050e4 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -1661,33 +1661,6 @@ next:
return 0;
}
-static inline int
-match_different(const struct xt_entry_match *a,
- const unsigned char *a_elems,
- const unsigned char *b_elems,
- unsigned char **maskptr)
-{
- const struct xt_entry_match *b;
- unsigned int i;
-
- /* Offset of b is the same as a. */
- b = (void *)b_elems + ((unsigned char *)a - a_elems);
-
- if (a->u.match_size != b->u.match_size)
- return 1;
-
- if (strcmp(a->u.user.name, b->u.user.name) != 0)
- return 1;
-
- *maskptr += XT_ALIGN(sizeof(*a));
-
- for (i = 0; i < a->u.match_size - XT_ALIGN(sizeof(*a)); i++)
- if (((a->data[i] ^ b->data[i]) & (*maskptr)[i]) != 0)
- return 1;
- *maskptr += i;
- return 0;
-}
-
static void
nft_parse_meta(struct nft_rule_expr *e, struct nft_rule_expr_iter *iter,
int family, struct iptables_command_state *cs)