internet-app: silence unwanted warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user