From 9a0f4700ea15d4b68dceee8dca4fb13ede728b14 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 19 Feb 2015 00:21:37 +0100 Subject: [PATCH] rm rdf template helper comments --- src/rr-dict.c | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/rr-dict.c b/src/rr-dict.c index ee86169d..fcdceb0d 100644 --- a/src/rr-dict.c +++ b/src/rr-dict.c @@ -44,27 +44,6 @@ #define ALEN(a) (sizeof(a)/sizeof(a[0])) #define UNKNOWN_RDATA NULL -/* -static uint8_t * -template_rdf_end(uint8_t *pkt, uint8_t *pkt_end, uint8_t *rdf) -{ - return NULL; -} -static getdns_return_t -template_dict_set_value(getdns_dict *dict, uint8_t *rdf) -{ - return GETDNS_RETURN_GENERIC_ERROR; -} -static getdns_return_t -template_list_append_value(getdns_list *list, uint8_t *rdf) -{ - return GETDNS_RETURN_GENERIC_ERROR; -} -static priv_getdns_rdf_special template = { - template_rdf_end, template_dict_set_value, template_list_append_value -}; -*/ - static uint8_t * apl_n_rdf_end(uint8_t *pkt, uint8_t *pkt_end, uint8_t *rdf) { @@ -192,6 +171,7 @@ static priv_getdns_rdf_special ipseckey_gateway = { ipseckey_gateway_rdf_end, ipseckey_gateway_dict_set_value, ipseckey_gateway_list_append_value }; + static uint8_t * hip_pk_algorithm_rdf_end(uint8_t *pkt, uint8_t *pkt_end, uint8_t *rdf) { @@ -213,6 +193,7 @@ static priv_getdns_rdf_special hip_pk_algorithm = { hip_pk_algorithm_rdf_end, hip_pk_algorithm_dict_set_value, hip_pk_algorithm_list_append_value }; + static uint8_t * hip_hit_rdf_end(uint8_t *pkt, uint8_t *pkt_end, uint8_t *rdf) { @@ -235,6 +216,7 @@ hip_hit_list_append_value(getdns_list *list, uint8_t *rdf) static priv_getdns_rdf_special hip_hit = { hip_hit_rdf_end, hip_hit_dict_set_value, hip_hit_list_append_value }; + static uint8_t * hip_public_key_rdf_end(uint8_t *pkt, uint8_t *pkt_end, uint8_t *rdf) { @@ -259,6 +241,7 @@ static priv_getdns_rdf_special hip_public_key = { hip_public_key_dict_set_value, hip_public_key_list_append_value }; + static priv_getdns_rdata_def a_rdata[] = { { "ipv4_address" , GETDNS_RDF_A }}; static priv_getdns_rdata_def ns_rdata[] = {