Shorten Tcp attribute names (bug 163)
authorRaj Bhattacharjea <raj.b@gatech.edu>
Thu, 10 Apr 2008 16:33:44 -0400
changeset 2904 413ef952ea19
parent 2903 ea31499ecbfb
child 2907 ebc23fe98852
Shorten Tcp attribute names (bug 163)
src/node/tcp.cc
--- a/src/node/tcp.cc	Thu Apr 10 15:04:47 2008 -0400
+++ b/src/node/tcp.cc	Thu Apr 10 16:33:44 2008 -0400
@@ -30,52 +30,52 @@
 {
   static TypeId tid = TypeId ("ns3::Tcp")
     .SetParent<SocketFactory> ()
-   .AddAttribute ("TcpDefaultSegmentSize",
-                  "Default TCP maximum segment size in bytes (may be adjusted based on MTU discovery)",
-                  Uinteger (536),
-                  MakeUintegerAccessor (&Tcp::m_defaultSegSize),
-                  MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultAdvertisedWindowSize",
+    .AddAttribute ("DefaultSegmentSize",
+                   "Default TCP maximum segment size in bytes (may be adjusted based on MTU discovery)",
+                   Uinteger (536),
+                   MakeUintegerAccessor (&Tcp::m_defaultSegSize),
+                   MakeUintegerChecker<uint32_t> ())
+    .AddAttribute ("DefaultAdvertisedWindowSize",
                    "Default TCP advertised window size (bytes)",
                    Uinteger (0xffff),
                    MakeUintegerAccessor (&Tcp::m_defaultAdvWin),
                    MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultSlowStartThreshold",
+    .AddAttribute ("DefaultSlowStartThreshold",
                    "Default TCP slow start threshold (bytes)",
                    Uinteger (0xffff),
                    MakeUintegerAccessor (&Tcp::m_defaultSsThresh),
                    MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultTxBufferSize",
+    .AddAttribute ("DefaultTxBufferSize",
                    "Default TCP maximum transmit buffer size (bytes)",
                    Uinteger (0xffffffffl),
                    MakeUintegerAccessor (&Tcp::m_defaultTxBuffer),
                    MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultRxBufferSize",
+    .AddAttribute ("DefaultRxBufferSize",
                    "Default TCP maximum receive buffer size (bytes)",
                    Uinteger (0xffffffffl),
                    MakeUintegerAccessor (&Tcp::m_defaultRxBuffer),
                    MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultInitialCongestionWindowSize",
+    .AddAttribute ("DefaultInitialCongestionWindowSize",
                    "Default TCP initial congestion window size (segments)",
                    Uinteger (1),
                    MakeUintegerAccessor (&Tcp::m_defaultInitialCwnd),
                    MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultConnTimeout",
+    .AddAttribute ("DefaultConnTimeout",
                    "Default TCP retransmission timeout when opening connection (seconds)",
                    Uinteger (3),
                    MakeUintegerAccessor (&Tcp::m_defaultConnTimeout),
                    MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultConnCount",
+    .AddAttribute ("DefaultConnCount",
                    "Default number of connection attempts (SYN retransmissions) before returning failure",
                    Uinteger (6),
                    MakeUintegerAccessor (&Tcp::m_defaultConnCount),
                    MakeUintegerChecker<uint32_t> ())
-    .AddAttribute ("TcpDefaultDelAckTimeout",
+    .AddAttribute ("DefaultDelAckTimeout",
                    "Default timeout value for TCP delayed acks, in seconds",
                    Double (0.2),
                    MakeDoubleAccessor (&Tcp::m_defaultDelAckTimeout),
                    MakeDoubleChecker<double> ())
-    .AddAttribute ("TcpDefaultDelAckCount",
+    .AddAttribute ("DefaultDelAckCount",
                    "Default number of packets to wait before sending a TCP ack",
                    Uinteger (2),
                    MakeUintegerAccessor (&Tcp::m_defaultDelAckCount),