diff --git a/src/applications/model/udp-server.cc b/src/applications/model/udp-server.cc index c1f553bf3..cedb7c2d4 100644 --- a/src/applications/model/udp-server.cc +++ b/src/applications/model/udp-server.cc @@ -49,12 +49,6 @@ UdpServer::GetTypeId() UintegerValue(100), MakeUintegerAccessor(&UdpServer::m_port), MakeUintegerChecker()) - .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()) .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)); } diff --git a/src/applications/model/udp-server.h b/src/applications/model/udp-server.h index d82590e18..cbe196db6 100644 --- a/src/applications/model/udp-server.h +++ b/src/applications/model/udp-server.h @@ -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 m_socket; //!< Socket Ptr m_socket6; //!< IPv6 Socket (used if only port is specified) uint64_t m_received; //!< Number of received packets