Skip to content

Commit a76253b

Browse files
CHANGES.md and internet doc
1 parent b638ac8 commit a76253b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This file is a best-effort approach to solving this issue; we will do our best b
2323

2424
* Pcap helpers now use ``LinkType`` enum contained in the ``iana`` namespace (``iana-link-type-numbers.h``).
2525
* (network) After the introduction of the `iana::` enumerations for L2 protocol numbers, the old ones (e.g., `Ipv4L3Protocol::PROT_NUMBER`) have been deprecated.
26+
* Centralized IANA numbers list in ``network/utils`` is now used instead of the constexpr ``PROT_NUMBER`` found in the definition of multiple protocols.
2627

2728
### Changes to build system
2829

src/internet/doc/internet-stack.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The actual registration is done
130130
with a statement such as follows::
131131

132132
RegisterProtocolHandler( MakeCallback(&Ipv4Protocol::Receive, ipv4),
133-
iana::Ieee802Numbers::IPV4, 0);
133+
iana::ieee802numbers::IPV4, 0);
134134

135135
The Ipv4L3Protocol object is aggregated to the Node; there is only one such
136136
Ipv4L3Protocol object. Higher-layer protocols that have a packet to send down to
@@ -140,7 +140,7 @@ pointer, as follows::
140140
Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol>();
141141
if (ipv4 != 0)
142142
{
143-
ipv4->Send(packet, saddr, daddr, iana::Ieee802Numbers::IPV4);
143+
ipv4->Send(packet, saddr, daddr, iana::ieee802numbers::IPV4);
144144
}
145145

146146
This class nicely demonstrates two techniques we exploit in |ns3| to bind

0 commit comments

Comments
 (0)