diff --git a/pelab/magent/PacketSensor.cc b/pelab/magent/PacketSensor.cc index aa048928468e85fe53ba039ed25c7a04daf39909..15baf5e34999d7215e2aca741787c9704d5d2879 100644 --- a/pelab/magent/PacketSensor.cc +++ b/pelab/magent/PacketSensor.cc @@ -41,6 +41,21 @@ Time const & PacketSensor::getAckedSendTime(void) const 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 isRetransmit = false; if (state->getState() == StateSensor::ESTABLISHED)