#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_router_next_hop(
router: *const PamojaRouter,
dst: u32,
out_next_hop: *mut u32,
) -> boolExpand description
Returns the neighbour to send a packet to on the way to a node.
§Arguments
router- the routing table.dst- the node to reach.out_next_hop- receives the neighbour address.
§Returns
true when a route is known, with *out_next_hop written, or false
otherwise.
§Safety
router must be a live handle from pamoja_router_new, or null, and
out_next_hop must point to a writable uint32_t.