return 0;
}
-/** check request sanity. Returns error code, 0 OK, or -1 discard.
+/** check request sanity.
* @param pkt: the wire packet to examine for sanity.
* @param worker: parameters for checking.
+ * @return error code, 0 OK, or -1 discard.
*/
static int
worker_check_request(ldns_buffer* pkt, struct worker* worker)
13 August 2010: Wouter
- More pleasant remote control command parsing.
+ - documentation added for return values reported by doxygen 1.7.1.
9 August 2010: Wouter
- Fix name of rrset printed that failed validation.
* @param regional: where to allocate the info.
* @param ns_rrset: NS rrset.
* @param lame: rrset is lame, disprefer it.
- * return 0 on alloc error.
+ * @return 0 on alloc error.
*/
int delegpt_rrset_add_ns(struct delegpt* dp, struct regional* regional,
struct ub_packed_rrset_key* ns_rrset, int lame);
* @param qinfo: query name and type
* @param qflags: query flags with RD flag
* @param dp: delegpt to check.
+ * @return true if dp is useless.
*/
int iter_dp_is_useless(struct query_info* qinfo, uint16_t qflags,
struct delegpt* dp);
* @param ie: iterator global state.
* @param id: module id.
* @param qclass: the class to prime.
+ * @return 0 on failure
*/
static int
prime_root(struct module_qstate* qstate, struct iter_qstate* iq,
*
* @param qstate: module environment
* @param pkt: a ldns_buffer which contains ldns_packet data
+ * @return 0 on failure, out of memory or parse error.
*/
int createResponse(struct module_qstate* qstate, ldns_buffer* pkt);
* @param runtime: runtime.
* @param entry: if true, the entry that matches is returned.
* @param pend: if true, the outgoing message that matches is returned.
- * return: true if pending query matches the now event.
+ * @return: true if pending query matches the now event.
*/
static int
pending_matches_range(struct replay_runtime* runtime,
* @param buf: is the buffer to store the result in
* @param offset: is the starting position in the result buffer
* @param buf_len: is the length of buf.
- *
- * This function returns the length of the result
+ * @return This function returns the length of the result
*/
static size_t
hexstr2bin(char *hexstr, int len, uint8_t *buf, size_t offset, size_t buf_len)
* Main fake event test program. Setup, teardown and report errors.
* @param argc: arg count.
* @param argv: array of commandline arguments.
+ * @return program failure if test fails.
*/
int
main(int argc, char* argv[])
* Main unit test program. Setup, teardown and report errors.
* @param argc: arg count.
* @param argv: array of commandline arguments.
+ * @return program failure if test fails.
*/
int
main(int argc, char* argv[])
* Count labels for the RRSIG signature label field.
* Like a normal labelcount, but "*" wildcard and "." root are not counted.
* @param dname: valid uncompressed wireformat.
+ * @return number of labels like in RRSIG; '*' and '.' are not counted.
*/
int dname_signame_label_count(uint8_t* dname);
* Checkout address family.
* @param addr: the sockaddr to examine.
* @param len: the length of addr.
- * return: true if sockaddr is ip6.
+ * @return: true if sockaddr is ip6.
*/
int addr_is_ip6(struct sockaddr_storage* addr, socklen_t len);
char* buf, size_t len);
/**
- * See if sockaddr is an ipv6 mapped ipv4 address, ::ffff:0.0.0.0
+ * See if sockaddr is an ipv6 mapped ipv4 address, "::ffff:0.0.0.0"
* @param addr: address
* @param addrlen: length of address
* @return true if so
/**
* See if autotrust anchors are configured and how many.
* @param anchors: the trust anchors structure.
+ * @return number of autotrust trust anchors
*/
size_t autr_get_num_anchors(struct val_anchors* anchors);
* Get DNSKEY protocol value from rdata
* @param k: DNSKEY rrset.
* @param idx: which key.
+ * @return protocol octet value
*/
static int
dnskey_get_protocol(struct ub_packed_rrset_key* k, size_t idx)