o ldns_rr_new_frm_fp
o ldns_rr_new_frm_fp_l
Which also get an extra variable
- * tsig.h: made internal used functions static:
+ * tsig.h: internal used functions are now static:
ldns_digest_name and ldns_tsig_mac_new
New:
* ldns_resolver_searchlist_count: return the searchlist counter
*/
void ldns_pkt_set_authority(ldns_pkt *p, ldns_rr_list *rr);
+/**
+ * push an rr on a packet
+ * \param[in] packet packet to operatore on
+ * \param[in] section where to put it
+ * \param[in] rr rr to push
+ * \return ldns_status status
+ */
+bool ldns_pkt_push_rr(ldns_pkt *packet, ldns_pkt_section section, ldns_rr *rr);
+
+/**
+ * push an rr on a packet, provided the RR is not there.
+ * \param[in] pkt packet to operatore on
+ * \param[in] sec where to put it
+ * \param[in] rr rr to push
+ * \return ldns_status status
+ */
+bool ldns_pkt_safe_push_rr(ldns_pkt *pkt, ldns_pkt_section sec, ldns_rr *rr);
+
/* lua helper stuff KEEP THIS?? NO/YES */
/** TODO or remove */
ldns_rr * ldns_pkt_get_rr(ldns_pkt *p, uint16_t n);