ldns - Online Linux Manual PageSection : 3
Updated : 30 May 2006
NAMEldns_pkt2buffer_str, ldns_pktheader2buffer_str, ldns_rr2buffer_str, ldns_rr_list2buffer_str, ldns_rdf2buffer_str, ldns_key2buffer_str, ldns_pkt2buffer_wire, ldns_rr2buffer_wire, ldns_rdf2buffer_wire, ldns_rrsig2buffer_wire, ldns_rr_rdata2buffer_wire − lower level conversions
SYNOPSIS#include <stdint.h>
#include <stdbool.h>
#include <ldns/ldns.h> ldns_status ldns_pkt2buffer_str(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_pktheader2buffer_str(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_rr2buffer_str(ldns_buffer *output, const ldns_rr *rr); ldns_status ldns_rr_list2buffer_str(ldns_buffer *output, const ldns_rr_list *list); ldns_status ldns_rdf2buffer_str(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_key2buffer_str(ldns_buffer *output, const ldns_key *k); ldns_status ldns_pkt2buffer_wire(ldns_buffer *output, const ldns_pkt *pkt); ldns_status ldns_rr2buffer_wire(ldns_buffer *output, const ldns_rr *rr, int section); ldns_status ldns_rdf2buffer_wire(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rrsig2buffer_wire(ldns_buffer *output, const ldns_rr *sigrr); ldns_status ldns_rr_rdata2buffer_wire(ldns_buffer *output, const ldns_rr *rr);
DESCRIPTIONldns_pkt2buffer_str() Converts the data in the DNS packet to presentation format (as char *) and appends it to the given buffer
output: pointer to the buffer to append the data to
pkt: the pointer to the packet to convert
Returns status ldns_pktheader2buffer_str() Converts the header of a packet to presentation format and appends it to the output buffer
output: the buffer to append output to
pkt: the packet to convert the header of
Returns ldns_status ldns_rr2buffer_str() Converts the data in the resource record to presentation format (as char *) and appends it to the given buffer. The presentation format of DNSKEY record is annotated with comments giving the id, type and size of the key.
output: pointer to the buffer to append the data to
rr: the pointer to the rr field to convert
Returns status ldns_rr_list2buffer_str() Converts a rr_list to presentation format and appends it to the output buffer
output: the buffer to append output to
list: the ldns_rr_list to print
Returns ldns_status ldns_rdf2buffer_str() Converts the data in the rdata field to presentation format (as char *) and appends it to the given buffer
output: pointer to the buffer to append the data to
rdf: the pointer to the rdafa field containing the data
Returns status ldns_key2buffer_str() Converts the data in the DNS packet to presentation format (as char *) and appends it to the given buffer
output: pointer to the buffer to append the data to
k: the pointer to the private key to convert
Returns status ldns_pkt2buffer_wire() Copies the packet data to the buffer in wire format
*output: buffer to append the result to
*pkt: packet to convert
Returns ldns_status ldns_rr2buffer_wire() Copies the rr data to the buffer in wire format
*output: buffer to append the result to
*rr: resource record to convert
section: the section in the packet this rr is supposed to be in (to determine whether to add rdata or not)
Returns ldns_status ldns_rdf2buffer_wire() Copies the rdata data to the buffer in wire format
*output: buffer to append the result to
*rdf: rdata to convert
Returns ldns_status ldns_rrsig2buffer_wire() Converts a rrsig to wireformat BUT EXCLUDE the rrsig rdata This is needed in DNSSEC verification
output: buffer to append the result to
sigrr: signature rr to operate on
Returns ldns_status ldns_rr_rdata2buffer_wire() Converts an rr's rdata to wireformat, while excluding the ownername and all the stuff before the rdata. This is needed in DNSSEC keytag calculation, the ds calcalution from the key and maybe elsewhere.
*output: buffer where to put the result
*rr: rr to operate on
Returns ldns_status
AUTHORThe ldns team at NLnet Labs.
REPORTING BUGSPlease report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html
COPYRIGHTCopyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSOldns_pkt2str, ldns_rr2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
This manpage was automatically generated from the ldns source code. 0
Johanes Gumabo
Data Size : 16,411 byte
man-ldns_pkt2buffer_wire.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 236,156
Visitor ID : :
Visitor IP : 18.191.120.103 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.