A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
iana-ieee802-numbers.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Tokushima University, Japan
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Authors: Samar Sodhi <smrsodhi@gmail.com>
7
* Alberto Gallegos Ramonet <alramonet@is.tokushima-u.ac.jp>
8
*/
9
10
/*
11
* Centralized definitions for IEEE 802 protocol numbers.
12
* This enumeration contains the IEEE 802 protocol numbers as defined by IANA.
13
* References:
14
* - https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml
15
* - IPV4 RFC894
16
* - ARP RFC1700
17
* - IPV6 RFC2464
18
* - LoWPAN RFC7973
19
*/
20
21
#ifndef IANA_IEEE_802_NUMBERS_H
22
#define IANA_IEEE_802_NUMBERS_H
23
24
#include <cstdint>
25
26
namespace
ns3
27
{
28
namespace
iana
29
{
30
namespace
ieee802numbers
31
{
32
constexpr
uint16_t
IPV4
= 0x0800;
//!< IPv4 EtherType [RFC894]
33
constexpr
uint16_t
ARP
= 0x0806;
//!< ARP EtherType [RFC1700]
34
constexpr
uint16_t
IPV6
= 0x86DD;
//!< IPv6 EtherType [RFC2464]
35
constexpr
uint16_t
BRIDGE_LEARNING_ETHERTYPE
= 0x88B5;
//!< IEEE Std 802 Local Experimental
36
//!< EtherType
37
constexpr
uint16_t
LoWPAN
= 0xA0ED;
//!< LoWPAN EtherType (e.g., 6LowPan) [RFC7973]
38
}
// namespace ieee802numbers
39
}
// namespace iana
40
}
// namespace ns3
41
42
#endif
// IANA_IEEE_802_NUMBERS_H
ns3::iana::ieee802numbers
Definition
iana-ieee802-numbers.h:31
ns3::iana::ieee802numbers::ARP
constexpr uint16_t ARP
ARP EtherType [RFC1700].
Definition
iana-ieee802-numbers.h:33
ns3::iana::ieee802numbers::LoWPAN
constexpr uint16_t LoWPAN
LoWPAN EtherType (e.g., 6LowPan) [RFC7973].
Definition
iana-ieee802-numbers.h:37
ns3::iana::ieee802numbers::BRIDGE_LEARNING_ETHERTYPE
constexpr uint16_t BRIDGE_LEARNING_ETHERTYPE
IEEE Std 802 Local Experimental EtherType.
Definition
iana-ieee802-numbers.h:35
ns3::iana::ieee802numbers::IPV6
constexpr uint16_t IPV6
IPv6 EtherType [RFC2464].
Definition
iana-ieee802-numbers.h:34
ns3::iana::ieee802numbers::IPV4
constexpr uint16_t IPV4
IPv4 EtherType [RFC894].
Definition
iana-ieee802-numbers.h:32
ns3::iana
Definition
iana-ieee802-numbers.h:29
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
network
utils
iana-ieee802-numbers.h
Generated on
for ns-3 by
1.16.1