12#ifndef ANTHOCNET_CORE_ROUTE_DECISION_H
13#define ANTHOCNET_CORE_ROUTE_DECISION_H
constexpr NodeAddress kInvalidAddress
"No such node / no route" sentinel, mirroring the legacy use of -1.
std::int32_t NodeAddress
Network-layer node address.
@ Unicast
Send message to nextHop.
@ Drop
Discard (loop, TTL, no route).
@ Deliver
Destination reached: hand to the local transport.
@ Queue
Hold the data packet pending a route to nextHop/dst.
@ DiscardPending
Local repair timed out ([1] §3.5, D6): discard the data packets queued for destination nextHop.
@ Broadcast
Link-layer broadcast message.
AntHistoryTracker: (src, seqNum) duplicate detection.
Complete, copyable description of an ant packet.
AntMessage message
Ant to emit (Unicast/Broadcast).
static RouteDecision deliver()
bool hasMessage
Whether message is populated.
static RouteDecision drop()
static RouteDecision none()