From d5754e3847f464f2cb45171e65f8f4b1082a540d Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 6 Nov 2018 18:39:16 +0100 Subject: arptables: make uni/multicast mac masks static Signed-off-by: Florian Westphal --- iptables/xtables-arp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'iptables/xtables-arp.c') 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 -- cgit v1.2.3