From ecf2332eeea69dcb1e1939ff289b47339646debd Mon Sep 17 00:00:00 2001 From: Tim Young Date: Mon, 7 Dec 2020 13:54:39 -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 6dce2ee..f1aa667 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -2119,7 +2119,7 @@ namespace EduNetworkBuilder //It was destined for here, or it is starting from scratch. See if we need to route it. if (tPacket.destIP == null) tPacket.destIP = new NB_IPAddress(NB.ZeroIPString); NB_IPAddress dest = DestinationFromIP(tPacket.destIP); //Get the IP, or GW - if(dest.GetIPString == NB.ZeroIPString && tPacket.destIP.GetIPString != NB.BroadcastIPString) + if(dest.GetIPString == NB.ZeroIPString && !tPacket.destIP.IsBroadcast()) { //No gateway set and no route... string errString = string.Format(NB.Translate("ND_NoRouteStr"), hostname, tPacket.destIP.GetIPString);