applications: Cleanup ToS attribute from UdpServer

This commit is contained in:
Sébastien Deronne
2024-09-09 17:54:34 +02:00
parent f5a28141dc
commit 89ec7d7c3f
2 changed files with 0 additions and 8 deletions

View File

@@ -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));
}

View File

@@ -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