From 774797a28fbd23dea5cbba154bae1d368f3a453c Mon Sep 17 00:00:00 2001 From: Tim Young Date: Mon, 7 Dec 2020 13:55:41 -0700 Subject: [PATCH] use broadcast func --- EduNetworkBuilder/NetworkDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EduNetworkBuilder/NetworkDevice.cs b/EduNetworkBuilder/NetworkDevice.cs index f1aa667..54755d0 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -2135,7 +2135,7 @@ namespace EduNetworkBuilder tPacket.OutboundIP = tPacket.destIP; tPacket.TsourceIP = null; } - else if(tPacket.destIP.GetIPString != NB.BroadcastIPString) + else if(!tPacket.destIP.IsBroadcast()) { //it needs to go to a gateway. Set the next destination is the GW tPacket.OutboundIP = dest;