Commit 7847602e authored by Jonathon Duerig's avatar Jonathon Duerig

Removed BEFORE_ESTABLISHED pseudo-state. Now things just move to established.

parent 5517884a
......@@ -37,11 +37,6 @@ void StateSensor::localSend(PacketInfo * packet)
logWrite(ERROR, "Sent a SYN packet out of order");
}
else if (! packet->tcp->syn && state == AFTER_SYN_ACK)
{
state = BEFORE_ESTABLISHED;
logWrite(SENSOR, "State change to BEFORE_ESTABLISHED");
}
else if (state == BEFORE_ESTABLISHED)
{
state = ESTABLISHED;
logWrite(SENSOR, "State change to ESTABLISHED");
......@@ -60,11 +55,6 @@ void StateSensor::localAck(PacketInfo * packet)
{
logWrite(ERROR, "Received a SYNACK packet out of order");
}
else if (state == BEFORE_ESTABLISHED)
{
state = ESTABLISHED;
logWrite(SENSOR, "State change to ESTABLISHED");
}
calculateSaturated(packet);
}
......
......@@ -13,10 +13,6 @@ public:
INITIAL,
AFTER_SYN,
AFTER_SYN_ACK,
// This doesn't correspond to any real TCP state. This is so that
// later sensors on the same ack won't see it as part of an
// established connection.
BEFORE_ESTABLISHED,
ESTABLISHED
};
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment