#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mesh_seen_record(
cache: *mut PamojaSeenCache,
src: u32,
id: u16,
) -> boolExpand description
Records a packet and reports whether it was new.
§Arguments
cache- the duplicate cache.src- the address the packet came from.id- the sequence number the packet carries.
§Returns
true if the packet had not been seen, which is when a node should act on it
and relay it, or false for a duplicate or a null cache.
§Safety
cache must be a live handle from pamoja_mesh_seen_new, or null.