A Discrete-Event Network Simulator
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
26namespace ns3
27{
28namespace iana
29{
31{
32constexpr uint16_t IPV4 = 0x0800; //!< IPv4 EtherType [RFC894]
33constexpr uint16_t ARP = 0x0806; //!< ARP EtherType [RFC1700]
34constexpr uint16_t IPV6 = 0x86DD; //!< IPv6 EtherType [RFC2464]
35constexpr uint16_t BRIDGE_LEARNING_ETHERTYPE = 0x88B5; //!< IEEE Std 802 Local Experimental
36 //!< EtherType
37constexpr 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
constexpr uint16_t ARP
ARP EtherType [RFC1700].
constexpr uint16_t LoWPAN
LoWPAN EtherType (e.g., 6LowPan) [RFC7973].
constexpr uint16_t BRIDGE_LEARNING_ETHERTYPE
IEEE Std 802 Local Experimental EtherType.
constexpr uint16_t IPV6
IPv6 EtherType [RFC2464].
constexpr uint16_t IPV4
IPv4 EtherType [RFC894].
Every class exported by the ns3 library is enclosed in the ns3 namespace.