Function gnunet_sys::GNUNET_DNSPARSER_parse_record[][src]

pub unsafe extern "C" fn GNUNET_DNSPARSER_parse_record(
    udp_payload: *const c_char,
    udp_payload_length: usize,
    off: *mut usize,
    r: *mut GNUNET_DNSPARSER_Record
) -> c_int

Parse a DNS record entry.

@param udp_payload entire UDP payload @param udp_payload_length length of @a udp_payload @param off pointer to the offset of the record to parse in the udp_payload (to be incremented by the size of the record) @param r where to write the record information @return #GNUNET_OK on success, #GNUNET_SYSERR if the record is malformed