- allows localhost to be queried when as a library.
- fixup race condition between cancel and answer (in case of
really fast answers that beat the cancel).
+ - please doxygen, put doxygen comment in one place.
24 January 2008: Wouter
- tested the cancel() function.
return 0;
}
-/** reads the canned reply file and returns a list of structs */
+/* reads the canned reply file and returns a list of structs */
struct entry*
read_datafile(const char* name)
{
return 1;
}
-/** finds entry in list, or returns NULL */
+/* finds entry in list, or returns NULL */
struct entry*
find_match(struct entry* entries, ldns_pkt* query_pkt,
enum transport_type transport)
}
}
-/** takes a hex string and puts into buffer */
+/* takes a hex string and puts into buffer */
void hex_to_buf(ldns_buffer* pkt, const char* hex)
{
const char* p = hex;
#include "util/log.h"
#include "util/storage/lookup3.h"
-/** determine length of a dname in buffer, no compression pointers allowed */
+/* determine length of a dname in buffer, no compression pointers allowed */
size_t
query_dname_len(ldns_buffer* query)
{
/** max length of an IP address (the address portion) that we allow */
#define MAX_ADDR_STRLEN 128 /* characters */
-/** returns true is string addr is an ip6 specced address */
+/* returns true is string addr is an ip6 specced address */
int
str_is_ip6(const char* str)
{
}
}
-/** send a UDP reply */
+/* send a UDP reply */
int
comm_point_send_udp_msg(struct comm_point *c, ldns_buffer* packet,
struct sockaddr* addr, socklen_t addrlen)
return 0;
}
-/** nsec3_cache_compare for rbtree */
+/* nsec3_cache_compare for rbtree */
int
nsec3_hash_cmp(const void* c1, const void* c2)
{
};
/**
- * Rbtree for hash cache comparison function
+ * Rbtree for hash cache comparison function.
* @param c1: key 1.
* @param c2: key 2.
- * @return comparison code, -1, 0, 1, of the keys.
+ * @return: comparison code, -1, 0, 1, of the keys.
*/
int nsec3_hash_cmp(const void* c1, const void* c2);