Skip to content
Snippets Groups Projects
Commit 59ba782a authored by Robert Ricci's avatar Robert Ricci
Browse files

Add a check for TCP window scaling, which is not yet supported

parent 69fcce51
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,21 @@ Time const & PacketSensor::getAckedSendTime(void) const ...@@ -41,6 +41,21 @@ Time const & PacketSensor::getAckedSendTime(void) const
void PacketSensor::localSend(PacketInfo * packet) void PacketSensor::localSend(PacketInfo * packet)
{ {
/*
* Check for window scaling, which is not supported yet by this code. This
* option is only legal on SACK packets. If we decide to support window
* scaling in the future, it might be better to move it to some other sensor
*/
if (packet->tcp->syn) {
list<Option>::iterator opt;
for (opt = packet->tcpOptions->begin();
opt != packet->tcpOptions->end();
++opt) {
if (opt->type == TCPOPT_WINDOW) {
logWrite(ERROR,"TCP window scaling in use - not supported!");
}
}
}
// Assume this packet is not a retransmit unless proven otherwise // Assume this packet is not a retransmit unless proven otherwise
isRetransmit = false; isRetransmit = false;
if (state->getState() == StateSensor::ESTABLISHED) if (state->getState() == StateSensor::ESTABLISHED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment