11#include "ns3/assert.h"
12#include "ns3/boolean.h"
15#include "ns3/warnings.h"
31 .SetGroupName(
"Internet")
34 "Globally enable or disable IP forwarding for all current and future Ipv4 devices.",
38 .AddAttribute(
"WeakEsModel",
39 "RFC1122 term for whether host accepts datagram with a dest. address on "
45 "DEPRECATED since ns-3.41. Use the StrongEndSystemModel attribute.")
47 "StrongEndSystemModel",
48 "Reject packets for an address not configured on the interface they're "
49 "coming from (RFC1122, section 3.3.4.2).",
54 .AddAttribute (
"MtuDiscover",
"If enabled, every outgoing ip packet will have the DF flag set.",
virtual bool GetIpForward() const =0
Get the IP forwarding state.
virtual bool GetStrongEndSystemModel() const =0
Get the Strong End System Model status.
virtual void SetIpForward(bool forward)=0
Set or unset the IP forwarding state.
virtual void SetStrongEndSystemModel(bool model)=0
Set or unset the Strong End System Model.
virtual void SetWeakEsModel(bool model)=0
Set or unset the Weak Es Model.
virtual bool GetWeakEsModel() const =0
Get the Weak Es Model status.
static TypeId GetTypeId()
Get the type ID.
A base class which provides memory management and object aggregation.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
@ DEPRECATED
Attribute or trace source is deprecated; user is warned.
virtual bool GetMtuDiscover() const =0
Get the MTU discover capability.
virtual void SetMtuDiscover(bool discover)=0
Set the MTU discover capability.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_WARNING_POP
Pops the diagnostic warning list from the stack, restoring it to the previous state.
#define NS_WARNING_PUSH_DEPRECATED
Save the current warning list and disables the ones about deprecated functions and classes.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)