Skip to content

Commit

Permalink
Nat Functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jeb16157 committed Feb 24, 2021
1 parent e1915d3 commit be7d80d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, queueBufferSize, dddState,
packetSize, packet_ID_prefix="R-"):
self.queueSize = queueBufferSize # MB's
self.clientConnection = clientConnection
self.clientIP = "1.0.0.0"
self.natIP = "10.0.0.0"
self.remoteServerConnection = remoteServerConnection
self.remoteServerIP = "4.0.0.0"
self.attackServerConnection = attackServerConnection
Expand Down Expand Up @@ -116,7 +116,7 @@ def addToQueues(self):
# Drop Packet
self.receiveBuffer.remove(i)
# Add to clients queue
elif(i.dstIP == self.clientIP):
elif(i.dstIP == self.natIP):
self.currentQueueLoadClient += i.packetSize
if(self.currentQueueLoadClient <= self.queueLimit):
self.queueClient.append(i)
Expand Down

0 comments on commit be7d80d

Please sign in to comment.