Module l2

Module l2 

Source
Expand description

§ndn_faces::l2 — Layer-2 (Ethernet and radio) faces

Link-layer face implementations for NDN over raw Ethernet (Ethertype 0x8624), Wifibroadcast, and Bluetooth LE.

§Key types

  • NamedEtherFace / MulticastEtherFace — unicast and multicast raw Ethernet faces
  • WfbFace — Wifibroadcast NG face for 802.11 monitor-mode injection (Linux only)
  • [BleFace] — BLE GATT face implementing the NDNts web-bluetooth-transport protocol (Linux only; requires bluetooth feature and BlueZ)
  • RadioTable — metadata registry for radio-based faces
  • [EtherNeighborDiscovery] — link-layer neighbor discovery (Linux only)

§Platform support

  • LinuxAF_PACKET raw sockets (full feature set)
  • macOSPF_NDRV for Ethernet faces
  • Windows — Npcap/WinPcap for Ethernet faces
  • Android / iOS — raw Ethernet faces are unavailable; only RadioTable and NDN_ETHERTYPE are exported. Use UdpFace/TcpFace and InProcFace from ndn_faces::net/ndn_faces::local for mobile deployments.

Re-exports§

pub use af_packet::get_interface_mac;
pub use ether::NamedEtherFace;
pub use multicast_ether::MulticastEtherFace;
pub use wfb::WfbFace;
pub use neighbor::NeighborDiscovery;
pub use radio::RadioFaceMetadata;
pub use radio::RadioTable;

Modules§

af_packet
Shared AF_PACKET infrastructure for raw Ethernet faces.
ether
multicast_ether
Multicast Ethernet face for L2 neighbor discovery.
neighbor
radio
wfb

Structs§

MacAddr
A 6-byte IEEE 802 MAC address.

Constants§

NDN_ETHERTYPE
IANA-assigned Ethertype for NDN over Ethernet (IEEE 802.3).