mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
add and fix doxygen comments for doxygen-1.7.1. (which reports lots of
spurious items as well, by the way). git-svn-id: file:///svn/unbound/trunk@2211 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
71cab42c9b
commit
40f8fe2815
14 changed files with 16 additions and 7 deletions
|
|
@ -283,9 +283,10 @@ worker_handle_service_reply(struct comm_point* c, void* arg, int error,
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ int delegpt_add_ns(struct delegpt* dp, struct regional* regional,
|
|||
* @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);
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ void iter_mark_pside_cycle_targets(struct module_qstate* qstate,
|
|||
* @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);
|
||||
|
|
|
|||
|
|
@ -534,6 +534,7 @@ generate_sub_request(uint8_t* qname, size_t qnamelen, uint16_t qtype,
|
|||
* @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,
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ void invalidateQueryInCache(struct module_qstate* qstate, struct query_info* qin
|
|||
*
|
||||
* @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);
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ pending_find_match(struct replay_runtime* runtime, struct entry** entry,
|
|||
* @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,
|
||||
|
|
|
|||
|
|
@ -258,8 +258,7 @@ static struct entry* new_entry()
|
|||
* @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)
|
||||
|
|
|
|||
|
|
@ -251,6 +251,7 @@ void remove_configfile(void)
|
|||
* 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[])
|
||||
|
|
|
|||
|
|
@ -487,6 +487,7 @@ void unit_show_feature(const char* feature)
|
|||
* 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[])
|
||||
|
|
|
|||
|
|
@ -257,6 +257,7 @@ void dname_remove_labels(uint8_t** dname, size_t* len, int n);
|
|||
* 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);
|
||||
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ int sockaddr_cmp_addr(struct sockaddr_storage* addr1, socklen_t len1,
|
|||
* 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);
|
||||
|
||||
|
|
@ -272,7 +272,7 @@ void addr_to_str(struct sockaddr_storage* addr, socklen_t addrlen,
|
|||
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
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ void autr_global_delete(struct autr_global_data* global);
|
|||
/**
|
||||
* 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);
|
||||
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ dnskey_get_flags(struct ub_packed_rrset_key* k, size_t idx)
|
|||
* 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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue