get rid of Attribute class. Use AttributeValue subclasses directly.
This commit is contained in:
1 parent
db81db32a8
commit
4ff40c4a07
132 files changed
+1345
-1628
No files matched your search
@@ -52,7 +52,7 @@ Ipv4L3Protocol::GetTypeId (void)
|
||||
.SetParent<Object> ()
|
||||
.AddConstructor<Ipv4L3Protocol> ()
|
||||
.AddAttribute ("DefaultTtl", "The TTL value set by default on all outgoing packets generated on this node.",
|
||||
Uinteger (64),
|
||||
UintegerValue (64),
|
||||
MakeUintegerAccessor (&Ipv4L3Protocol::m_defaultTtl),
|
||||
MakeUintegerChecker<uint8_t> ())
|
||||
.AddTraceSource ("Tx", "Send ipv4 packet to outgoing interface.",
|
||||
@@ -62,7 +62,7 @@ Ipv4L3Protocol::GetTypeId (void)
|
||||
.AddTraceSource ("Drop", "Drop ipv4 packet",
|
||||
MakeTraceSourceAccessor (&Ipv4L3Protocol::m_dropTrace))
|
||||
.AddAttribute ("InterfaceList", "The set of Ipv4 interfaces associated to this Ipv4 stack.",
|
||||
ObjectVector (),
|
||||
ObjectVectorValue (),
|
||||
MakeObjectVectorAccessor (&Ipv4L3Protocol::m_interfaces),
|
||||
MakeObjectVectorChecker<Ipv4Interface> ())
|
||||
;
|
||||
|
||||
@@ -37,7 +37,7 @@ Ipv4L4Demux::GetTypeId (void)
|
||||
static TypeId tid = TypeId ("ns3::Ipv4L4Demux")
|
||||
.SetParent<Object> ()
|
||||
.AddAttribute ("Protocols", "The set of protocols registered with this demux.",
|
||||
ObjectVector (),
|
||||
ObjectVectorValue (),
|
||||
MakeObjectVectorAccessor (&Ipv4L4Demux::m_protocols),
|
||||
MakeObjectVectorChecker<Ipv4L4Protocol> ())
|
||||
;
|
||||
|
||||
@@ -34,11 +34,11 @@ Ipv4L4Protocol::GetTypeId (void)
|
||||
static TypeId tid = TypeId ("ns3::Ipv4L4Protocol")
|
||||
.SetParent<Object> ()
|
||||
.AddAttribute ("ProtocolNumber", "The Ipv4 protocol number.",
|
||||
Uinteger (0),
|
||||
UintegerValue (0),
|
||||
MakeUintegerAccessor (&Ipv4L4Protocol::GetProtocolNumber),
|
||||
MakeUintegerChecker<int> ())
|
||||
.AddAttribute ("Version", "The version of the protocol.",
|
||||
Uinteger (0),
|
||||
UintegerValue (0),
|
||||
MakeUintegerAccessor (&Ipv4L4Protocol::GetVersion),
|
||||
MakeUintegerChecker<int> ())
|
||||
;
|
||||
|
||||
@@ -43,12 +43,12 @@ RttEstimator::GetTypeId (void)
|
||||
.SetParent<Object> ()
|
||||
.AddAttribute ("MaxMultiplier",
|
||||
"XXX",
|
||||
Double (64.0),
|
||||
DoubleValue (64.0),
|
||||
MakeDoubleAccessor (&RttEstimator::m_maxMultiplier),
|
||||
MakeDoubleChecker<double> ())
|
||||
.AddAttribute ("InitialEstimation",
|
||||
"XXX",
|
||||
Seconds (1.0),
|
||||
TimeValue (Seconds (1.0)),
|
||||
MakeTimeAccessor (&RttEstimator::est),
|
||||
MakeTimeChecker ())
|
||||
;
|
||||
@@ -177,7 +177,7 @@ RttMeanDeviation::GetTypeId (void)
|
||||
.AddConstructor<RttMeanDeviation> ()
|
||||
.AddAttribute ("Gain",
|
||||
"XXX",
|
||||
Double (0.1),
|
||||
DoubleValue (0.1),
|
||||
MakeDoubleAccessor (&RttMeanDeviation::gain),
|
||||
MakeDoubleChecker<double> ())
|
||||
;
|
||||
|
||||
@@ -327,7 +327,7 @@ TcpL4Protocol::GetTypeId (void)
|
||||
.SetParent<Ipv4L4Protocol> ()
|
||||
.AddAttribute ("RttEstimatorFactory",
|
||||
"How RttEstimator objects are created.",
|
||||
GetDefaultRttEstimatorFactory (),
|
||||
ObjectFactoryValue (GetDefaultRttEstimatorFactory ()),
|
||||
MakeObjectFactoryAccessor (&TcpL4Protocol::m_rttFactory),
|
||||
MakeObjectFactoryChecker ())
|
||||
;
|
||||
|
||||
@@ -1165,7 +1165,7 @@ void TcpSocket::ReTxTimeout ()
|
||||
// Collapse congestion window (re-enter slowstart)
|
||||
m_cWnd = m_segmentSize;
|
||||
m_nextTxSequence = m_highestRxAck; // Start from highest Ack
|
||||
m_rtt->IncreaseMultiplier (); // Double timeout value for next retx timer
|
||||
m_rtt->IncreaseMultiplier (); // DoubleValue timeout value for next retx timer
|
||||
Retransmit (); // Retransmit the packet
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user