Commit Graph

426 Commits

Author SHA1 Message Date
Tom Henderson
34cde13d3f rescan internet bindings 2015-07-13 19:18:49 -07:00
Natale Patriciello
66f58aab5a Documented TCP states, moved enum inside TcpSocket 2015-07-13 17:58:06 -07:00
Natale Patriciello
7f8dc7e404 Window() is now managed inside TcpSocketBase 2015-07-13 17:57:09 -07:00
Natale Patriciello
f228c5c17b Initialize cWnd and ssTh in TcpSocketBase 2015-07-13 17:56:15 -07:00
Natale Patriciello
43051b28c0 Moved cWnd and ssThresh inside TcpSocketBase
These two trace sources are now managed in TcpSocketBase.
2015-07-13 10:02:55 -07:00
Natale Patriciello
5c99689061 TCP flags are now printed using string instead of numbers
This patch improves readability when TCP flags are involved.
2015-07-13 08:26:43 -07:00
Natale Patriciello
8f11338195 TcpHeader can be printed in NS_LOG messages
Implemented the operator << to an output stream.
2015-07-13 08:23:40 -07:00
Natale Patriciello
c489647301 DoForwardUp behavior unified for IPv4 and IPv6
The commit unifies the behavior of DoForwardUp for both IPv4 and IPv6
(previously tagged as duplicated code) by changing the input parameters: from an
{IPv4,IPv6}Header to a couple of address (sender and receiver). Thanks to the
Send() method of TcpL4Protocol which takes in input two Addresses, the behavior
of the method could be unified as in the commit title.
2015-07-13 08:06:38 -07:00
Natale Patriciello
d3f916a917 Addressed comment in CodeReview
SendPacket made private except the one which takes general Address. Some minor
correction on doxygen comments.
2015-07-13 08:05:07 -07:00
Natale Patriciello
3dc863a005 Checked style on TcpL4Protocol 2015-07-13 08:03:44 -07:00
Natale Patriciello
b97b0de553 Const correctness enforced 2015-07-13 08:02:58 -07:00
Natale Patriciello
fdcf89dd53 Duplicated code removed from Receive in TcpL4Protocol
When TcpL4Protocol receive a packet, the methods which handle the management
of the packet itself (for both IPv4 and IPv6) shares a lot of code. Differencies
are only in the endpoint searching; the other operations have been merged in two
protected methods, which are called by the Receive methods.
2015-07-13 07:53:58 -07:00
Natale Patriciello
ec3ff0953b Bug 2132: If no endpoints are found for the incoming packet, the TcpL4Protocol sends an RST packet. However it was not well-formatted (missing right source, destination and ports). 2015-07-13 07:50:47 -07:00
Natale Patriciello
b4e765c5b6 Documentation improvements on TcpL4Protocol 2015-07-13 07:48:39 -07:00
Natale Patriciello
5c66f6fa1f Unused header removed to enable a faster compile process. 2015-07-08 06:58:31 -07:00
Natale Patriciello
dcdbc179fb Thanks to previous commits, now TcpSocketBases uses only public methods on TcpL4Protocol and the friend relation could be removed. 2015-07-08 06:50:00 -07:00
Natale Patriciello
f612ebca1c Instead of directly manage the m_socketList member from TcpSocketBase, interact with it through public methods of TcpL4Protocol. 2015-07-08 06:48:40 -07:00
Natale Patriciello
93ce0ad194 Interface API change. This removes the (unused) Send function, and makes SendPacket (used by TcpSocketBase) a public method of the class TcpL4Protocol. 2015-07-08 06:46:54 -07:00
Tommaso Pecorella
d8c14885b2 Bug 2124 - UdpSocketImpl::ShutdownRecv doesn't stop the Ipv[4,6]EndPointDemux 2015-07-02 18:21:44 +02:00
Tom Henderson
dc3667a937 bug 2125: subclasses must chain up to their base class NotifyNewAggregate() method (patch due to nlmills) 2015-06-24 21:36:15 -07:00
Tommaso Pecorella
c5f127c193 Bug 1929 - TcpL4Protocol::Send must indicate the source address to routing (if known) 2015-06-11 17:30:07 +02:00
Tom Henderson
8df0d04bbb add missing copyrights 2015-06-10 07:52:23 -07:00
Tommaso Pecorella
ba17f6168e Bug 1929 - TcpL4Protocol::Send must indicate the source address to routing (if known) 2015-06-09 23:36:57 +02:00
Tommaso Pecorella
f47b9bce81 Bug 2135 - TCP doesn't honor the socket's output interface 2015-06-09 23:41:06 +02:00
Peter D. Barnes, Jr.
a2e0ed145a Missing mode lines. 2015-06-08 16:37:40 -07:00
Peter D. Barnes, Jr.
5545a7f224 Remove extraneous ' ' around :: 2015-02-04 13:40:57 -08:00
Tommaso Pecorella
9c250b48c9 [Doxygen] Internet module fixes (again) 2015-05-24 15:45:54 +02:00
Tommaso Pecorella
7033e74a3f [Doxygen] Internet module fixes 2015-05-24 00:06:35 +02:00
Tommaso Pecorella
59b9e08aa2 [RipNg] clarify the socket binding addresses 2015-05-22 17:07:46 +02:00
Tom Henderson
964748e197 rescan internet bindings 2015-05-05 13:58:03 -07:00
Tom Henderson
8f0c89ea5f postfix commit 11358:9a04bd20a224 and add test case (was raising error: default initialization of an object of const type on some systems) 2015-05-05 13:27:01 -07:00
Tom Henderson
46584b732f rescan bindings 2015-05-04 23:25:28 -07:00
Tom Henderson
2e4b36c82e bug 2058: TCP window update can shrink the Left Edge of the window which is a bug (patch based on earlier contribution from Evgeny Evstropov) 2015-05-04 22:39:00 -07:00
Tommaso Pecorella
90784f5eef Bug 2067 - TCP performances drop when Advertised Window is larger than Sender Buffer size 2015-05-04 12:32:47 -07:00
Matthieu Coudron
02d5a5ef6b Adds a function to convert TCP flags into a string 2015-05-04 12:31:32 -07:00
Tommaso Pecorella
e0165db56c Bug 2103 - Ipv[4,6]RoutingHelper::PrintRoutingTableAll[At,Every] hangs if a node doesn't have IP 2015-04-19 21:39:32 +02:00
Tommaso Pecorella
034b9777cd (rip-ng) Don't route a packet from/to a LinkLocal address 2015-04-08 18:18:49 +02:00
Tommaso Pecorella
6b3f645a55 Bug 2090 - (rip-ng) Routes may be added twice on interface activation 2015-04-08 18:14:28 +02:00
Tommaso Pecorella
cce8378466 SetGroupName for internet module 2015-03-29 11:14:34 +02:00
Tom Henderson
d99dc82675 defer random variable usage until test run time 2015-03-19 20:13:06 -07:00
Tom Henderson
47fe0d4747 bug 1982: AODV uses random variables before seeds can be set 2015-03-19 20:03:57 -07:00
Tommaso Pecorella
d2b290924d Bug 2076 - TCP MinRTO Attribute is not actually used 2015-03-15 08:41:59 +01:00
Tommaso Pecorella
b04062ce08 Bug 2077 - Icmpv6L4Protocol::HandleDestinationUnreachable must check the packet size, not its serialized size 2015-03-14 18:45:02 +01:00
Vedran Miletić
7967235960 Fix building with clang 3.5 (abs->std::abs, unused vars) 2015-03-11 16:50:35 +01:00
Natale Patriciello
b27422fb2f Bug 2070 - Wrong report of Packets and Bytes stored in CoDeL 2015-03-01 12:08:36 +01:00
Tommaso Pecorella
17e5e203b3 Bug 2073 - NDisc cache entries update timer might be stuck in a loop 2015-02-28 15:16:47 +01:00
Tom Henderson
9bddf4b972 rescan bindings 2015-02-01 22:21:11 -08:00
Tommaso Pecorella
bce2be09a8 bug 1734: TcpSocketBase produces spurious delayed ACKs (fix due to Lawrence Stewart) 2015-02-01 07:13:56 -08:00
Tommaso Pecorella
68c826b445 Bug 2055 - TxBuffer and RxBuffer traces don't work 2015-01-31 15:45:36 -08:00
Steve Zabele
4ea974bb7f Bug 2053 - In tcp-socket-base.cc, NotifyDataSent incorrectly called with retransmits 2015-01-31 13:20:37 +01:00