22 #include "ns3/assert.h"
23 #include "ns3/boolean.h"
26 #include "ns3/warnings.h"
42 .SetGroupName(
"Internet")
45 "Globally enable or disable IP forwarding for all current and future Ipv4 devices.",
49 .AddAttribute(
"WeakEsModel",
50 "RFC1122 term for whether host accepts datagram with a dest. address on "
56 "DEPRECATED since ns-3.41. Use the StrongEndSystemModel attribute.")
58 "StrongEndSystemModel",
59 "Reject packets for an address not configured on the interface they're "
60 "coming from (RFC1122, section 3.3.4.2).",
65 .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_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.
#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.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)