Function gnunet_sys::GNUNET_DNSPARSER_parse[][src]

pub unsafe extern "C" fn GNUNET_DNSPARSER_parse(
    udp_payload: *const c_char,
    udp_payload_length: usize
) -> *mut GNUNET_DNSPARSER_Packet

Parse a UDP payload of a DNS packet in to a nice struct for further processing and manipulation.

@param udp_payload wire-format of the DNS packet @param udp_payload_length number of bytes in @a udp_payload @return NULL on error, otherwise the parsed packet