Function gnunet_sys::GNUNET_DNSPARSER_builder_add_soa [−][src]
pub unsafe extern "C" fn GNUNET_DNSPARSER_builder_add_soa(
dst: *mut c_char,
dst_len: usize,
off: *mut usize,
soa: *const GNUNET_DNSPARSER_SoaRecord
) -> c_int
Add an SOA record to the UDP packet at the given location.
@param dst where to write the SOA record @param dst_len number of bytes in @a dst @param off pointer to offset where to write the SOA information (increment by bytes used) can also change if there was an error @param soa SOA information to write @return #GNUNET_SYSERR if @a soa is invalid #GNUNET_NO if @a soa did not fit #GNUNET_OK if @a soa was added to @a dst