Skip to content

Commit 0714b7b

Browse files
committed
patch updated
1 parent 39eb1b6 commit 0714b7b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/inet4-migration-notes/inet4patch_for_openflow_migration_test.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
diff --git a/src/inet/transportlayer/tcp/Tcp.ned b/src/inet/transportlayer/tcp/Tcp.ned
2-
index cb940aaec7..1a028372fc 100644
2+
index 437f92bcbb..f16d58b861 100644
33
--- a/src/inet/transportlayer/tcp/Tcp.ned
44
+++ b/src/inet/transportlayer/tcp/Tcp.ned
5-
@@ -156,7 +156,7 @@ simple Tcp like ITcp
5+
@@ -186,7 +186,7 @@ simple Tcp like ITcp
66
string crcMode @enum("declared", "computed") = default("declared");
7-
int advertisedWindow = default(14 * this.mss); // In bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size)
8-
bool delayedAcksEnabled = default(false); // Delayed ACK algorithm (RFC 1122) enabled/disabled
7+
int advertisedWindow = default(14*this.mss); // in bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size)
8+
bool delayedAcksEnabled = default(false); // delayed ACK algorithm (RFC 1122) enabled/disabled
99
- bool nagleEnabled = default(true); // Nagle's algorithm (RFC 896) enabled/disabled
1010
+ bool nagleEnabled = default(false); // Nagle's algorithm (RFC 896) enabled/disabled
1111
bool limitedTransmitEnabled = default(false); // Limited Transmit algorithm (RFC 3042) enabled/disabled (can be used for TcpReno/TcpTahoe/TcpNewReno/TcpNoCongestionControl)
1212
bool increasedIWEnabled = default(false); // Increased Initial Window (RFC 3390) enabled/disabled
1313
bool sackSupport = default(false); // Selective Acknowledgment (RFC 2018, 2883, 3517) support (header option) (SACK will be enabled for a connection if both endpoints support it)
1414
diff --git a/src/inet/transportlayer/tcp/TcpConnectionUtil.cc b/src/inet/transportlayer/tcp/TcpConnectionUtil.cc
15-
index 8c1f006965..7a0b5bdde7 100644
15+
index a1b2b0e8d8..8e7f0dba40 100644
1616
--- a/src/inet/transportlayer/tcp/TcpConnectionUtil.cc
1717
+++ b/src/inet/transportlayer/tcp/TcpConnectionUtil.cc
18-
@@ -908,6 +908,7 @@ bool TcpConnection::sendData(uint32_t congestionWindow)
18+
@@ -889,6 +889,7 @@ bool TcpConnection::sendData(uint32_t congestionWindow)
1919
// start sending 'bytesToSend' bytes
2020
EV_INFO << "May send " << bytesToSend << " bytes (effectiveWindow " << effectiveWin << ", in buffer " << buffered << " bytes)\n";
2121

2222
+
2323
// send whole segments
2424
while (bytesToSend >= effectiveMss) {
2525
uint32_t sentBytes = sendSegment(effectiveMss);
26-
@@ -923,8 +924,11 @@ bool TcpConnection::sendData(uint32_t congestionWindow)
26+
@@ -904,8 +905,11 @@ bool TcpConnection::sendData(uint32_t congestionWindow)
2727
bool containsFin = state->send_fin && (state->snd_nxt + bytesToSend) == state->snd_fin_seq;
2828
if (state->nagle_enabled && unacknowledgedData && !containsFin)
2929
EV_WARN << "Cannot send (last) segment due to Nagle, not enough data for a full segment\n";

0 commit comments

Comments
 (0)