Expand description
Cross-platform network interface and neighbor enumeration.
liblsl enumerates interfaces with GetAdaptersAddresses on Windows and
getifaddrs on Linux and macOS (src/netinterfaces.cpp:21-114). This
module gives the same interface list on Unix and Windows, plus the IPv4
directed broadcast address and local ARP neighbors for fallback discovery
(docs/discovery.md).
Structs§
- Ipv4
Interface - One local IPv4 interface address.
Functions§
- directed_
broadcast - Compute the directed broadcast address from an IPv4 address and prefix.
- local_
interface_ indexes - Every interface index on this machine, with zero at the front.
- local_
ipv4_ addresses - Every local IPv4 address on this machine, for multicast binds and sends.
- local_
ipv4_ interfaces - Every active IPv4 interface on this machine.
- local_
ipv4_ neighbors - Local IPv4 neighbors from the operating system ARP table.
- parse_
proc_ arp - Parse Linux
/proc/net/arptext into valid unicast IPv4 neighbors. - prefix_
to_ mask - Convert a prefix length (0 to 32) to a big-endian IPv4 bitmask.