applications: Cleanup ToS attribute from UdpServer
This commit is contained in:
@@ -49,12 +49,6 @@ UdpServer::GetTypeId()
|
||||
UintegerValue(100),
|
||||
MakeUintegerAccessor(&UdpServer::m_port),
|
||||
MakeUintegerChecker<uint16_t>())
|
||||
.AddAttribute("Tos",
|
||||
"The Type of Service used to send IPv4 packets. "
|
||||
"All 8 bits of the TOS byte are set (including ECN bits).",
|
||||
UintegerValue(0),
|
||||
MakeUintegerAccessor(&UdpServer::m_tos),
|
||||
MakeUintegerChecker<uint8_t>())
|
||||
.AddAttribute("PacketWindowSize",
|
||||
"The size of the window used to compute the packet loss. This value "
|
||||
"should be a multiple of 8.",
|
||||
@@ -149,7 +143,6 @@ UdpServer::StartApplication()
|
||||
{
|
||||
NS_FATAL_ERROR("Failed to bind socket");
|
||||
}
|
||||
m_socket->SetIpTos(m_tos); // Affects only IPv4 sockets.
|
||||
m_socket->SetRecvCallback(MakeCallback(&UdpServer::HandleRead, this));
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,6 @@ class UdpServer : public Application
|
||||
Address m_local; //!< Local address to bind to (address and port)
|
||||
uint16_t
|
||||
m_port; //!< Port on which we listen for incoming packets if local address is not specified
|
||||
uint8_t m_tos; //!< The packets Type of Service
|
||||
Ptr<Socket> m_socket; //!< Socket
|
||||
Ptr<Socket> m_socket6; //!< IPv6 Socket (used if only port is specified)
|
||||
uint64_t m_received; //!< Number of received packets
|
||||
|
||||
Reference in New Issue
Block a user