Interpret

Map an IP address to its Autonomous System Number using the given asmap.

Synopsis

Declared in <util/asmap.h>

uint32_t
Interpret(
    std::span<std::byte const> asmap,
    std::span<std::byte const> ip);

Return Value

The Autonomous System Number the IP address belongs to.

Parameters

NameDescription
asmapThe encoded asmap data to interpret.
ipThe IP address bits to look up.