Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
59ba782a
Commit
59ba782a
authored
Sep 06, 2006
by
Robert Ricci
Browse files
Add a check for TCP window scaling, which is not yet supported
parent
69fcce51
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/magent/PacketSensor.cc
View file @
59ba782a
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment