Function get_origin_id_v4

Source
fn get_origin_id_v4(
    reply_dst: u32,
    reply_sport: u16,
    reply_dport: u16,
    origin_map: &Vec<Origin>,
) -> Option<u32>
Expand description

Get the origin ID from the origin map based on the reply destination address and ports.

§Arguments

  • reply_dst - the destination address of the reply

  • reply_sport - the source port of the reply

  • reply_dport - the destination port of the reply

  • origin_map - the origin map to search in

§Returns

  • Option<u32> - the origin ID if found, None otherwise