summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-arp.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-06 18:39:16 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-12 16:30:22 +0100
commitd5754e3847f464f2cb45171e65f8f4b1082a540d (patch)
tree202b8e440e42570fb5ebaf4212e94d1a04dcb0ca /iptables/xtables-arp.c
parent1b63e66c2645e9186969588b6f68306c26ce5ca1 (diff)
arptables: make uni/multicast mac masks static
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-arp.c')
-rw-r--r--iptables/xtables-arp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c
index bde35e5d..6a095bfd 100644
--- a/iptables/xtables-arp.c
+++ b/iptables/xtables-arp.c
@@ -233,12 +233,12 @@ struct pprot {
/* ARPTABLES SPECIFIC NEW FUNCTIONS ADDED HERE */
/***********************************************/
-unsigned char mac_type_unicast[ETH_ALEN] = {0,0,0,0,0,0};
-unsigned char msk_type_unicast[ETH_ALEN] = {1,0,0,0,0,0};
-unsigned char mac_type_multicast[ETH_ALEN] = {1,0,0,0,0,0};
-unsigned char msk_type_multicast[ETH_ALEN] = {1,0,0,0,0,0};
-unsigned char mac_type_broadcast[ETH_ALEN] = {255,255,255,255,255,255};
-unsigned char msk_type_broadcast[ETH_ALEN] = {255,255,255,255,255,255};
+static unsigned char mac_type_unicast[ETH_ALEN] = {0,0,0,0,0,0};
+static unsigned char msk_type_unicast[ETH_ALEN] = {1,0,0,0,0,0};
+static unsigned char mac_type_multicast[ETH_ALEN] = {1,0,0,0,0,0};
+static unsigned char msk_type_multicast[ETH_ALEN] = {1,0,0,0,0,0};
+static unsigned char mac_type_broadcast[ETH_ALEN] = {255,255,255,255,255,255};
+static unsigned char msk_type_broadcast[ETH_ALEN] = {255,255,255,255,255,255};
/*
* put the mac address into 6 (ETH_ALEN) bytes