fn extract_udp_probe(payload: &[u8]) -> TraceResult<u16> {
    let ip4 = Ipv4Packet::new(payload).req()?;
    let header_len = usize::from(ip4.get_header_length() * 4);
    let nested_udp = &payload[header_len..];
    let nested = UdpPacket::new(nested_udp).req()?;
    Ok(nested.get_destination())
}
/// Get the original `UdpPacket` packet embedded in the payload.
Get the original `UdpPacket` packet embedded in the payload.
Get the original ` UdpPacket ` packet embedded in the payload .
fn extract_udp_probe(payload: &[u8]) -> TraceResult<u16> {
    let ip4 = Ipv4Packet::new(payload).req()?;
    let header_len = usize::from(ip4.get_header_length() * 4);
    let nested_udp = &payload[header_len..];
    let nested = UdpPacket::new(nested_udp).req()?;
    Ok(nested.get_destination())
}
fn extract_udp_probe ( payload : & [ u8 ] ) -> TraceResult < u16 > { let ip4 = Ipv4Packet :: new ( payload ) . req ( ) ? ; let header_len = usize :: from ( ip4 . get_header_length ( ) * 4 ) ; let nested_udp = & payload [ header_len .. ] ; let nested = UdpPacket :: new ( nested_udp ) . req ( ) ? ; Ok ( nested . get_destination ( ) ) }
Get the original `UdpPacket` packet embedded in the payload.
Get the original ` UdpPacket ` packet embedded in the payload .
payload
&[u8]