A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ipv6.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007 INRIA
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7 */
8
9/* taken from src/node/ipv4.h and adapted to IPv6 */
10
11#include "ipv6.h"
12
13#include "ns3/assert.h"
14#include "ns3/boolean.h"
15#include "ns3/node.h"
16
17namespace ns3
18{
19
21
22TypeId
24{
25 static TypeId tid =
26 TypeId("ns3::Ipv6")
28 .SetGroupName("Internet")
29 .AddAttribute(
30 "IpForward",
31 "Globally enable or disable IP forwarding for all current and future IPv6 devices.",
32 BooleanValue(false),
35 .AddAttribute("MtuDiscover",
36 "If disabled, every interface will have its MTU set to 1280 bytes.",
37 BooleanValue(true),
40 .AddAttribute(
41 "StrongEndSystemModel",
42 "Reject packets for an address not configured on the interface they're "
43 "coming from (RFC1122, section 3.3.4.2).",
44 BooleanValue(true),
47 return tid;
48}
49
51{
52}
53
55{
56}
57
58} /* namespace ns3 */
~Ipv6() override
Destructor.
Definition ipv6.cc:54
virtual void SetIpForward(bool forward)=0
Set IPv6 forwarding state.
virtual void SetMtuDiscover(bool mtuDiscover)=0
Set IPv6 MTU discover state.
static TypeId GetTypeId()
Get the type ID.
Definition ipv6.cc:23
virtual bool GetIpForward() const =0
Get IPv6 forwarding state.
virtual bool GetStrongEndSystemModel() const =0
Get the Strong End System Model status.
virtual bool GetMtuDiscover() const =0
Get IPv6 MTU discover state.
Ipv6()
Constructor.
Definition ipv6.cc:50
virtual void SetStrongEndSystemModel(bool model)=0
Set or unset the Strong End System Model.
A base class which provides memory management and object aggregation.
Definition object.h:78
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeBooleanChecker()
Definition boolean.cc:113
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Definition boolean.h:70