SysTutorials Posts

  • |

    ldns_rr2wire (3) Linux Manual Page

    NAME ldns_rr2wire, ldns_pkt2wire, ldns_rdf2wire SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_status ldns_rr2wire(uint8_t **dest, const ldns_rr *rr, int, size_t *size); ldns_status ldns_pkt2wire(uint8_t **dest, const ldns_pkt *p, size_t *size); ldns_status ldns_rdf2wire(uint8_t **dest, const ldns_rdf *rdf, size_t *size); DESCRIPTION ldns_rr2wire() Allocates an array of uint8_t at dest, and puts the wireformat of the given rr in that…

  • |

    ldns_rr2str (3) Linux Manual Page

    NAME ldns_rr2str, ldns_pkt2str, ldns_rdf2str, ldns_rr_list2str, ldns_key2str SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> char* ldns_rr2str(const ldns_rr *rr); char* ldns_pkt2str(const ldns_pkt *pkt); char* ldns_rdf2str(const ldns_rdf *rdf); char* ldns_rr_list2str(const ldns_rr_list *rr_list); char* ldns_key2str(const ldns_key *k); DESCRIPTION ldns_rr2str() Converts the data in the resource record to presentation format and returns that as a char *. Remember to free…

  • |

    ldns_rr2canonical (3) Linux Manual Page

    NAME ldns_rr2canonical SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> void ldns_rr2canonical(ldns_rr *rr); DESCRIPTION ldns_rr2canonical() converts each dname in a rr to its canonical form. .br rr: the rr to work on .br Returns void AUTHOR The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS Please report bugs…

  • |

    ldns_rr2buffer_wire (3) Linux Manual Page

    NAME ldns_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 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_rr2buffer_str (3) Linux Manual Page

    NAME ldns_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 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_rr (3) Linux Manual Page

    NAME ldns_rr, ldns_rr_class, ldns_rr_type, ldns_rr_compress, ldns_rr_list SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> DESCRIPTION ldns_rr Resource Record This is the basic DNS element that contains actual data From RFC1035: <pre> 3.2.1. Format All RRs have the same top level format shown below:                               1  1  1  1  1  1 0  1  2  3  4  5  6  7  8  9  0  1  2  3  4  5  +–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+  |                                               |  /                                               /  /                      NAME                     /  |                                               |  +–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+  |                      TYPE                     |  +–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+  |                     CLASS                     |  +–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+–+  |                      TTL                      |…

  • |

    ldns_resolver_print (3) Linux Manual Page

    NAME ldns_rr_print, ldns_rdf_print, ldns_pkt_print, ldns_rr_list_print, ldns_resolver_print, ldns_zone_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> void ldns_rr_print(FILE *output, const ldns_rr *rr); void ldns_rdf_print(FILE *output, const ldns_rdf *rdf); void ldns_pkt_print(FILE *output, const ldns_pkt *pkt); void ldns_rr_list_print(FILE *output, const ldns_rr_list *list); void ldns_resolver_print(FILE *output, const ldns_resolver *r); void ldns_zone_print(FILE *output, const ldns_zone *z); DESCRIPTION ldns_rr_print() Prints the data…

  • |

    ldns_rdf_type (3) Linux Manual Page

    NAME ldns_rdf, ldns_rdf_type SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> DESCRIPTION ldns_rdf Resource record data field. The data is a network ordered array of bytes, which size is specified by the (16-bit) size field. To correctly parse it, use the type specified in the (16-bit) type field with a value from \ref ldns_rdf_type. struct ldns_struct_rdf…

  • |

    ldns_rdf_size (3) Linux Manual Page

    NAME ldns_rdf_size, ldns_rdf_get_type, ldns_rdf_data, ldns_rdf_compare SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> size_t ldns_rdf_size(const ldns_rdf *rd); ldns_rdf_type ldns_rdf_get_type(const ldns_rdf *rd); uint8_t* ldns_rdf_data(const ldns_rdf *rd); int ldns_rdf_compare(const ldns_rdf *rd1, const ldns_rdf *rd2); DESCRIPTION ldns_rdf_size() returns the size of the rdf. .br *rd: the rdf to read from .br Returns uint16_t with the size ldns_rdf_get_type() returns the…

  • |

    ldns_rdf_set_type (3) Linux Manual Page

    NAME ldns_rdf_set_size, ldns_rdf_set_type, ldns_rdf_set_data SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> void ldns_rdf_set_size(ldns_rdf *rd, size_t size); void ldns_rdf_set_type(ldns_rdf *rd, ldns_rdf_type type); void ldns_rdf_set_data(ldns_rdf *rd, void *data); DESCRIPTION ldns_rdf_set_size() sets the size of the rdf. .br *rd: the rdf to operate on .br size: the new size .br Returns void ldns_rdf_set_type() sets the size of the…

  • |

    ldns_rdf_set_size (3) Linux Manual Page

    NAME ldns_rdf_set_size, ldns_rdf_set_type, ldns_rdf_set_data SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> void ldns_rdf_set_size(ldns_rdf *rd, size_t size); void ldns_rdf_set_type(ldns_rdf *rd, ldns_rdf_type type); void ldns_rdf_set_data(ldns_rdf *rd, void *data); DESCRIPTION ldns_rdf_set_size() sets the size of the rdf. .br *rd: the rdf to operate on .br size: the new size .br Returns void ldns_rdf_set_type() sets the size of the…

  • |

    ldns_rdf_set_data (3) Linux Manual Page

    NAME ldns_rdf_set_size, ldns_rdf_set_type, ldns_rdf_set_data SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> void ldns_rdf_set_size(ldns_rdf *rd, size_t size); void ldns_rdf_set_type(ldns_rdf *rd, ldns_rdf_type type); void ldns_rdf_set_data(ldns_rdf *rd, void *data); DESCRIPTION ldns_rdf_set_size() sets the size of the rdf. .br *rd: the rdf to operate on .br size: the new size .br Returns void ldns_rdf_set_type() sets the size of the…

  • |

    ldns_rdf_print (3) Linux Manual Page

    NAME ldns_rdf_new, ldns_rdf_clone, ldns_rdf_new_frm_data, ldns_rdf_new_frm_str, ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data); ldns_rdf* ldns_rdf_clone(const ldns_rdf *rd); ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size, const void *data); ldns_rdf* ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str); ldns_status ldns_rdf_new_frm_fp(ldns_rdf **r, ldns_rdf_type type, FILE *fp); void ldns_rdf_free(ldns_rdf *rd); void ldns_rdf_deep_free(ldns_rdf *rd); void…

  • |

    ldns_rdf_new_frm_str (3) Linux Manual Page

    NAME ldns_rdf_new, ldns_rdf_clone, ldns_rdf_new_frm_data, ldns_rdf_new_frm_str, ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data); ldns_rdf* ldns_rdf_clone(const ldns_rdf *rd); ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size, const void *data); ldns_rdf* ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str); ldns_status ldns_rdf_new_frm_fp(ldns_rdf **r, ldns_rdf_type type, FILE *fp); void ldns_rdf_free(ldns_rdf *rd); void ldns_rdf_deep_free(ldns_rdf *rd); void…

  • |

    ldns_rdf_new_frm_fp (3) Linux Manual Page

    NAME ldns_rdf_new, ldns_rdf_clone, ldns_rdf_new_frm_data, ldns_rdf_new_frm_str, ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data); ldns_rdf* ldns_rdf_clone(const ldns_rdf *rd); ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size, const void *data); ldns_rdf* ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str); ldns_status ldns_rdf_new_frm_fp(ldns_rdf **r, ldns_rdf_type type, FILE *fp); void ldns_rdf_free(ldns_rdf *rd); void ldns_rdf_deep_free(ldns_rdf *rd); void…

  • |

    ldns_rdf_new_frm_data (3) Linux Manual Page

    NAME ldns_rdf_new, ldns_rdf_clone, ldns_rdf_new_frm_data, ldns_rdf_new_frm_str, ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data); ldns_rdf* ldns_rdf_clone(const ldns_rdf *rd); ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size, const void *data); ldns_rdf* ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str); ldns_status ldns_rdf_new_frm_fp(ldns_rdf **r, ldns_rdf_type type, FILE *fp); void ldns_rdf_free(ldns_rdf *rd); void ldns_rdf_deep_free(ldns_rdf *rd); void…

  • |

    ldns_rdf_new (3) Linux Manual Page

    NAME ldns_rdf_new, ldns_rdf_clone, ldns_rdf_new_frm_data, ldns_rdf_new_frm_str, ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data); ldns_rdf* ldns_rdf_clone(const ldns_rdf *rd); ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size, const void *data); ldns_rdf* ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str); ldns_status ldns_rdf_new_frm_fp(ldns_rdf **r, ldns_rdf_type type, FILE *fp); void ldns_rdf_free(ldns_rdf *rd); void ldns_rdf_deep_free(ldns_rdf *rd); void…

  • |

    ldns_rdf_get_type (3) Linux Manual Page

    NAME ldns_rdf_size, ldns_rdf_get_type, ldns_rdf_data, ldns_rdf_compare SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> size_t ldns_rdf_size(const ldns_rdf *rd); ldns_rdf_type ldns_rdf_get_type(const ldns_rdf *rd); uint8_t* ldns_rdf_data(const ldns_rdf *rd); int ldns_rdf_compare(const ldns_rdf *rd1, const ldns_rdf *rd2); DESCRIPTION ldns_rdf_size() returns the size of the rdf. .br *rd: the rdf to read from .br Returns uint16_t with the size ldns_rdf_get_type() returns the…

  • |

    ldns_rdf_free (3) Linux Manual Page

    NAME ldns_rdf_new, ldns_rdf_clone, ldns_rdf_new_frm_data, ldns_rdf_new_frm_str, ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data); ldns_rdf* ldns_rdf_clone(const ldns_rdf *rd); ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size, const void *data); ldns_rdf* ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str); ldns_status ldns_rdf_new_frm_fp(ldns_rdf **r, ldns_rdf_type type, FILE *fp); void ldns_rdf_free(ldns_rdf *rd); void ldns_rdf_deep_free(ldns_rdf *rd); void…

  • |

    ldns_rdf_deep_free (3) Linux Manual Page

    NAME ldns_rdf_new, ldns_rdf_clone, ldns_rdf_new_frm_data, ldns_rdf_new_frm_str, ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print SYNOPSIS #include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data); ldns_rdf* ldns_rdf_clone(const ldns_rdf *rd); ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size, const void *data); ldns_rdf* ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str); ldns_status ldns_rdf_new_frm_fp(ldns_rdf **r, ldns_rdf_type type, FILE *fp); void ldns_rdf_free(ldns_rdf *rd); void ldns_rdf_deep_free(ldns_rdf *rd); void…