From: Florian Westphal Date: Tue, 6 Nov 2018 17:39:16 +0000 (+0100) Subject: arptables: make uni/multicast mac masks static X-Git-Tag: v1.8.2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5754e3847f464f2cb45171e65f8f4b1082a540d;p=thirdparty%2Fiptables.git arptables: make uni/multicast mac masks static Signed-off-by: Florian Westphal --- 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