From fee7f202a66529564f422ea591bda3708bd04ee5 Mon Sep 17 00:00:00 2001 From: Charlie Crane Date: Mon, 15 Jul 2024 10:06:28 +0100 Subject: [PATCH] #2711 - Amending some minor changes spotted whilst raising PR --- src/primaite/simulator/network/hardware/base.py | 1 + src/primaite/simulator/network/protocols/ssh.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/primaite/simulator/network/hardware/base.py b/src/primaite/simulator/network/hardware/base.py index 610dd071..6942d280 100644 --- a/src/primaite/simulator/network/hardware/base.py +++ b/src/primaite/simulator/network/hardware/base.py @@ -256,6 +256,7 @@ class NetworkInterface(SimComponent, ABC): """ # Determine the direction of the traffic direction = "inbound" if inbound else "outbound" + # Initialize protocol and port variables protocol = None port = None diff --git a/src/primaite/simulator/network/protocols/ssh.py b/src/primaite/simulator/network/protocols/ssh.py index 7d1f915e..7be81982 100644 --- a/src/primaite/simulator/network/protocols/ssh.py +++ b/src/primaite/simulator/network/protocols/ssh.py @@ -56,9 +56,6 @@ class SSHConnectionMessage(IntEnum): SSH_MSG_CHANNEL_CLOSE = 87 """Closes the channel.""" - SSH_LOGOFF_ACK = 89 - """Logoff confirmation acknowledgement""" - class SSHPacket(DataPacket): """Represents an SSHPacket."""