removed some extra debug points
This commit is contained in:
parent
09b5f08626
commit
259d68d72b
@ -379,8 +379,6 @@ namespace EduNetworkBuilder
|
|||||||
NetworkLink nl;
|
NetworkLink nl;
|
||||||
if (NB.GetComponentType(tPacket.WhereAmI) != GeneralComponentType.device) return false; //we cannot do this.
|
if (NB.GetComponentType(tPacket.WhereAmI) != GeneralComponentType.device) return false; //we cannot do this.
|
||||||
NetworkDevice WhereFrom = (NetworkDevice)tPacket.WhereAmI;
|
NetworkDevice WhereFrom = (NetworkDevice)tPacket.WhereAmI;
|
||||||
if (WhereFrom.hostname == "wrouter0" && tPacket.MyType == PacketType.ping_answer)
|
|
||||||
Console.WriteLine("wearehere");
|
|
||||||
NicType what = GetNicType;
|
NicType what = GetNicType;
|
||||||
if (!tPacket.isFresh && WhereFrom.IsWirelessForwarder() && what == NicType.wlan)
|
if (!tPacket.isFresh && WhereFrom.IsWirelessForwarder() && what == NicType.wlan)
|
||||||
what = NicType.wport;
|
what = NicType.wport;
|
||||||
|
@ -1356,8 +1356,6 @@ namespace EduNetworkBuilder
|
|||||||
if (PacketSentOutWAN)
|
if (PacketSentOutWAN)
|
||||||
continue; //do not send packets out of ports if they have been sent out a WAN nic
|
continue; //do not send packets out of ports if they have been sent out a WAN nic
|
||||||
NetworkCard tdNic = dNic;
|
NetworkCard tdNic = dNic;
|
||||||
if (hostname == "wrouter0" && tPacket.MyType == PacketType.ping_answer)
|
|
||||||
Console.WriteLine("wearehere");
|
|
||||||
if (myType == NetworkComponentType.wrouter)
|
if (myType == NetworkComponentType.wrouter)
|
||||||
{
|
{
|
||||||
//On wRouters, the wPorts are hubs, but the ports are switches
|
//On wRouters, the wPorts are hubs, but the ports are switches
|
||||||
|
@ -253,7 +253,6 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
double deltax = (sPoint.X - dPoint.X) / 100.0;
|
double deltax = (sPoint.X - dPoint.X) / 100.0;
|
||||||
double deltay = (sPoint.Y - dPoint.Y) / 100.0;
|
double deltay = (sPoint.Y - dPoint.Y) / 100.0;
|
||||||
//wearehere; //We need to start at an end. (we need to add sPoint.x, spoint.y depending on which dir we are going)
|
|
||||||
Point answer;
|
Point answer;
|
||||||
if(direction == nb_direction.to_dst)
|
if(direction == nb_direction.to_dst)
|
||||||
answer = new Point(sPoint.X-(int)(deltax * Percentage), sPoint.Y-(int)(deltay * Percentage));
|
answer = new Point(sPoint.X-(int)(deltax * Percentage), sPoint.Y-(int)(deltay * Percentage));
|
||||||
|
Loading…
Reference in New Issue
Block a user