From 62de02551335d9218ba330072d979630bb5c79bf Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 1 Sep 2017 15:51:08 -0500 Subject: [PATCH] do not send packets out if there is no IP address for the nic / management interface. --- EduNetworkBuilder/NetworkCard.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/EduNetworkBuilder/NetworkCard.cs b/EduNetworkBuilder/NetworkCard.cs index ce3b134..773bc0c 100644 --- a/EduNetworkBuilder/NetworkCard.cs +++ b/EduNetworkBuilder/NetworkCard.cs @@ -707,6 +707,7 @@ namespace EduNetworkBuilder nl = myNet.GetLinkFromID(ConnectedLink); if (nl == null) break; + if (nPacket.sourceIP.GetIPString == NB.ZeroIPString && tPacket.MyType != PacketType.dhcp_request) return false; //We still have no IP. Do not send the packet out. nPacket.StartOnLink(nl, WhereFrom); //This sends the packet down the link. myNet.addPacket(nPacket); if (tPacket.isFresh)