Re-fixed switch stuff. Hopefully things are all working now
This commit is contained in:
parent
ea480fe7d7
commit
87c085448d
@ -411,7 +411,7 @@ namespace EduNetworkBuilder
|
|||||||
if ((nf != null && nf.myIP.GetIPString != NB.ZeroIPString) || nPacket.MyType == PacketType.dhcp_request)
|
if ((nf != null && nf.myIP.GetIPString != NB.ZeroIPString) || nPacket.MyType == PacketType.dhcp_request)
|
||||||
{
|
{
|
||||||
//this means we have a local interface to send it out of
|
//this means we have a local interface to send it out of
|
||||||
if(nPacket.sourceMAC == null || nPacket.sourceMAC == "" || nPacket.isFresh)
|
//if(nPacket.sourceMAC == null || nPacket.sourceMAC == "" || nPacket.isFresh)
|
||||||
nPacket.sourceMAC = MAC;
|
nPacket.sourceMAC = MAC;
|
||||||
//If the source IP is empty then it is a new packet. We set the source to be us
|
//If the source IP is empty then it is a new packet. We set the source to be us
|
||||||
if (nPacket.sourceIP == null || nPacket.sourceIP.GetIPString == NB.ZeroIPString)
|
if (nPacket.sourceIP == null || nPacket.sourceIP.GetIPString == NB.ZeroIPString)
|
||||||
|
Loading…
Reference in New Issue
Block a user