From f71cd2678af47dee3eaf54d89a358913be89260d Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 10 Nov 2018 14:00:13 -0600 Subject: [PATCH] arch/sim/src/up_netdriver.c: Fix error 'invalid operands to binary &' --- arch/sim/src/up_netdriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sim/src/up_netdriver.c b/arch/sim/src/up_netdriver.c index 55eb13af8d..3c45444726 100644 --- a/arch/sim/src/up_netdriver.c +++ b/arch/sim/src/up_netdriver.c @@ -126,7 +126,7 @@ static int sim_txpoll(struct net_driver_s *dev) #ifdef CONFIG_NET_IPv4 #ifdef CONFIG_NET_IPv6 - if (IFF_IS_IPv4(&g_sim_dev)) + if (IFF_IS_IPv4(g_sim_dev.d_flags)) #endif { arp_out(&g_sim_dev);