Add a traversal class to the packet.

This commit is contained in:
Tim Young 2017-08-25 10:15:01 -05:00
parent f4cade1652
commit 9b78092b5a

View File

@ -67,6 +67,7 @@ namespace EduNetworkBuilder
public string OutboundDestMAC = ""; public string OutboundDestMAC = "";
public bool isFresh = false; //Set to be true if the packet is new. Set false as soon as it is processed public bool isFresh = false; //Set to be true if the packet is new. Set false as soon as it is processed
public bool DebugOn = false; public bool DebugOn = false;
public TraversalClass TraversalInformation = new TraversalClass();
public bool ready_to_delete public bool ready_to_delete
{ {
@ -114,6 +115,7 @@ namespace EduNetworkBuilder
packetID = copyfrom.packetID; packetID = copyfrom.packetID;
VLANID = copyfrom.VLANID; VLANID = copyfrom.VLANID;
Tracking.AddMessage(DebugLevel.debug, WhereAmI, NB.Translate("P_PacketDuplicated")); Tracking.AddMessage(DebugLevel.debug, WhereAmI, NB.Translate("P_PacketDuplicated"));
TraversalInformation = copyfrom.TraversalInformation.Clone();
} }
//Generate a packet with the given payload. //Generate a packet with the given payload.