]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
arptables: make uni/multicast mac masks static
authorFlorian Westphal <fw@strlen.de>
Tue, 6 Nov 2018 17:39:16 +0000 (18:39 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 12 Nov 2018 15:30:22 +0000 (16:30 +0100)
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-arp.c

index bde35e5dcb9cb22fbd316b5ccb5654fdfdaab5b7..6a095bfd1629606960badf1f2484eb8979c47219 100644 (file)
@@ -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