I'm using ldns in a project, but have a need for some specific requests to be generated without domain name compression. Right now there's no easy way to do that as the compression logic in ldns_pkt2wire is unconditional. Adding an ldns_pkt2buffer_wire_compress function that I can explicitly call with a NULL rbtree seems like the easiest, least invasive way to add this functionality, and fits with the existing API.
What are your thoughts? Is this functionality you'd like to support in ldns, and if so does this approach seem okay?
I'm using ldns in a project, but have a need for some specific requests to be generated without domain name compression. Right now there's no easy way to do that as the compression logic in
ldns_pkt2wire
is unconditional. Adding anldns_pkt2buffer_wire_compress
function that I can explicitly call with a NULL rbtree seems like the easiest, least invasive way to add this functionality, and fits with the existing API.What are your thoughts? Is this functionality you'd like to support in ldns, and if so does this approach seem okay?