internet-app: silence unwanted warnings

This commit is contained in:
Tommaso Pecorella
2022-12-12 23:55:16 +01:00
parent 83c915c897
commit 383efcfc3d
2 changed files with 6 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
#include "ns3/ping6.h"
#include "ns3/uinteger.h"
#include "ns3/warnings.h"
namespace ns3
{
@@ -28,7 +29,9 @@ namespace ns3
Ping6Helper::Ping6Helper()
: m_ifIndex(0)
{
NS_WARNING_PUSH_DEPRECATED;
m_factory.SetTypeId(Ping6::GetTypeId());
NS_WARNING_POP;
}
void

View File

@@ -21,14 +21,17 @@
#include "ns3/names.h"
#include "ns3/v4ping.h"
#include "ns3/warnings.h"
namespace ns3
{
V4PingHelper::V4PingHelper(Ipv4Address remote)
{
NS_WARNING_PUSH_DEPRECATED;
m_factory.SetTypeId("ns3::V4Ping");
m_factory.Set("Remote", Ipv4AddressValue(remote));
NS_WARNING_POP;
}
void