Skip to content

Commit

Permalink
[#5] Sorted import
Browse files Browse the repository at this point in the history
  • Loading branch information
janbronicki@gmail.com authored and janbronicki@gmail.com committed May 12, 2021
1 parent 9a63cb2 commit 62cf660
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Renode/Network/NetworkServer/IServerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//

using System;
using System.Net;
using System.Collections.Generic;
using System.Net;
using PacketDotNet;

namespace Antmicro.Renode.Network
Expand Down
14 changes: 7 additions & 7 deletions src/Renode/Network/NetworkServer/Modules/IcmpServerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@
//

using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Collections.Generic;
using System.Net.NetworkInformation;
using System.Threading.Tasks;

using PacketDotNet;

using Antmicro.Renode.Core;
using Antmicro.Renode.Core.Structure;
using Antmicro.Renode.Logging;
using Antmicro.Renode.Exceptions;
using Antmicro.Renode.Logging;
using Antmicro.Renode.Utilities;
using PacketDotNet;
using PacketDotNet.Utils;


Expand Down Expand Up @@ -162,8 +160,10 @@ private EthernetFrame CreateEthernetFramePacket(IPv4Packet ipv4Packet, ICMPv4Pac

var ethernetResponse = new EthernetPacket((PhysicalAddress)MAC,
icmpDestinationAddress,
EthernetPacketType.None);
ethernetResponse.PayloadPacket = ipv4Packet;
EthernetPacketType.None)
{
PayloadPacket = ipv4Packet
};
icmpv4PacketResponse.UpdateCalculatedValues();

this.Log(LogLevel.Noisy, "Sending response: {0}",
Expand Down
13 changes: 5 additions & 8 deletions src/Renode/Network/NetworkServer/NetworkServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,17 @@
//

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Collections.Generic;

using PacketDotNet;

using Antmicro.Renode.Core;
using Antmicro.Renode.Core.Structure;
using Antmicro.Renode.Peripherals.Network;
using Antmicro.Renode.Logging;
using Antmicro.Renode.Exceptions;

using System.Linq;
using Antmicro.Renode.Logging;
using Antmicro.Renode.Peripherals.Network;
using PacketDotNet;

namespace Antmicro.Renode.Network
{
Expand Down

0 comments on commit 62cf660

Please sign in to comment.