diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-09 20:11:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-24 11:35:34 +0100 |
commit | 902e92ceedba96d3241fa8ff701c061cd53a197d (patch) | |
tree | 9c45d7fcb97a3f507c727b31d77e7311cab1d74d /iptables/xtables-ebtables.h | |
parent | da871de2a6efb576b6378a66222c0871f4282e96 (diff) |
ebtables-compat: use ebtables_command_state in bootstrap code
And introduce fake ebt_entry.
This gets the code in sync in other existing compat tools. This
will likely allow to consolidate common infrastructure.
This code is still quite experimental.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-ebtables.h')
-rw-r--r-- | iptables/xtables-ebtables.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/iptables/xtables-ebtables.h b/iptables/xtables-ebtables.h deleted file mode 100644 index 1e479b1b..00000000 --- a/iptables/xtables-ebtables.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef _XTABLES_EBTABLES_H_ -#define _XTABLES_EBTABLES_H_ - -#include <netinet/in.h> -#include <linux/netfilter_bridge/ebtables.h> -#include <linux/netfilter/x_tables.h> - -/* We use replace->flags, so we can't use the following values: - * 0x01 == OPT_COMMAND, 0x02 == OPT_TABLE, 0x100 == OPT_ZERO */ -#define LIST_N 0x04 -#define LIST_C 0x08 -#define LIST_X 0x10 -#define LIST_MAC2 0x20 - -/* Be backwards compatible, so don't use '+' in kernel */ -#define IF_WILDCARD 1 - -extern unsigned char eb_mac_type_unicast[ETH_ALEN]; -extern unsigned char eb_msk_type_unicast[ETH_ALEN]; -extern unsigned char eb_mac_type_multicast[ETH_ALEN]; -extern unsigned char eb_msk_type_multicast[ETH_ALEN]; -extern unsigned char eb_mac_type_broadcast[ETH_ALEN]; -extern unsigned char eb_msk_type_broadcast[ETH_ALEN]; -extern unsigned char eb_mac_type_bridge_group[ETH_ALEN]; -extern unsigned char eb_msk_type_bridge_group[ETH_ALEN]; - -int ebt_get_mac_and_mask(const char *from, unsigned char *to, unsigned char *mask); - -struct xtables_ebt_entry { - unsigned int bitmask; - unsigned int invflags; - unsigned int flags; - uint16_t ethproto; - char in[IFNAMSIZ]; - char logical_in[IFNAMSIZ]; - unsigned char in_mask[IFNAMSIZ]; - char out[IFNAMSIZ]; - char logical_out[IFNAMSIZ]; - unsigned char out_mask[IFNAMSIZ]; - unsigned char sourcemac[ETH_ALEN]; - unsigned char sourcemsk[ETH_ALEN]; - unsigned char destmac[ETH_ALEN]; - unsigned char destmsk[ETH_ALEN]; - struct xtables_rule_match *matches; - struct xtables_target *target; - struct xt_counters counters; - const char *jumpto; -}; -#endif |