Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Cecchet
emulab-devel
Commits
59ba782a
Commit
59ba782a
authored
18 years ago
by
Robert Ricci
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pelab/magent/PacketSensor.cc
+15
-0
15 additions, 0 deletions
pelab/magent/PacketSensor.cc
with
15 additions
and
0 deletions
pelab/magent/PacketSensor.cc
+
15
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment