Skip to main content

pamoja_mesh_frame_set_hop_limit

Function pamoja_mesh_frame_set_hop_limit 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_mesh_frame_set_hop_limit( frame: *mut PamojaMeshFrame, hop_limit: u8, )
Expand description

Sets the number of relays a frame may still take.

§Arguments

  • frame - the frame to adjust.
  • hop_limit - the new hop limit.

§Safety

frame must be a live handle from a call that produced one, or null.