logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ldns_pkt, ldns_pkt_section, ldns_pkt_type - request or answer packets types

Author

       The ldns team at NLnet Labs.

Description

ldns_pkt
              DNS packet

              This structure contains a complete DNS packet (either a query or an answer)

              It is the complete representation of what you actually send to a
              nameserver, and what it sends back (assuming you are the client here).
              struct ldns_struct_pkt
              {
                   Headersection:
                   ldns_hdr *_header;
                   /* extra items needed in a packet */
                   anrdf(AorAAAA)withtheIPaddressoftheserveritisfrom:
                   ldns_rdf *_answerfrom;
                      Timestampofthetimethepacketwassentorcreated:
                   struct timeval timestamp;
                   Thedurationofthequerythispacketisananswerto:
                   uint32_t _querytime;
                   Thesizeofthewireformatofthepacketinoctets:
                   size_t _size;
                   Optionaltsigrr:
                   ldns_rr *_tsig_rr;
                   EDNS0availablebuffersize,seeRFC2671:
                   uint16_t _edns_udp_size;
                   EDNS0Extendedrcode:
                   uint8_t _edns_extended_rcode;
                   EDNSVersion:
                   uint8_t _edns_version;
                   /* OPT pseudo-RR presence flag */
                   uint8_t _edns_present;
                   ReservedEDNSdatabits:
                   uint16_t _edns_z;
                   ArbitraryEDNSrdata:
                   ldns_rdf *_edns_data;
                   StructedEDNSdata:
                   ldns_edns_option_list *_edns_list;
                   Questionsection:
                   ldns_rr_list   *_question;
                   Answersection:
                   ldns_rr_list   *_answer;
                   Authoritysection:
                   ldns_rr_list   *_authority;
                   Additionalsection:
                   ldns_rr_list   *_additional;
              };
              typedef struct ldns_struct_pkt ldns_pkt;

       ldns_pkt_section()

       ldns_pkt_type()

Name

       ldns_pkt, ldns_pkt_section, ldns_pkt_type - request or answer packets types

Remarks

       This manpage was automatically generated from the ldns source code.

                                                   30 May 2006                                           ldns(3)

Reporting Bugs

       Please report bugs to dns-team@nlnetlabs.nl or on GitHub at https://github.com/NLnetLabs/ldns/issues

See Also

ldns_pkt_new,    ldns_pkt_free,    ldns_pkt_print,    ldns_pkt_query_new,     ldns_pkt_query_new_frm_str,
       ldns_pkt_reply_type,   ldns_pkt_id,  ldns_pkt_qr,  ldns_pkt_aa,  ldns_pkt_tc,  ldns_pkt_rd,  ldns_pkt_cd,
       ldns_pkt_ra, ldns_pkt_ad, ldns_pkt_get_opcode,  ldns_pkt_get_rcode,  ldns_pkt_qdcount,  ldns_pkt_ancount,
       ldns_pkt_nscount,     ldns_pkt_arcount,     ldns_pkt_answerfrom,    ldns_pkt_querytime,    ldns_pkt_size,
       ldns_pkt_tsig,    ldns_pkt_question,    ldns_pkt_answer,     ldns_pkt_authority,     ldns_pkt_additional,
       ldns_pkt_get_section_clone,              ldns_pkt_rr_list_by_name,              ldns_pkt_rr_list_by_type,
       ldns_pkt_rr_list_by_name_and_type, ldns_pkt_set_flags, ldns_pkt_set_id, ldns_pkt_set_qr, ldns_pkt_set_aa,
       ldns_pkt_set_tc, ldns_pkt_set_rd, ldns_pkt_set_cd, ldns_pkt_set_ra, ldns_pkt_set_ad, ldns_pkt_set_opcode,
       ldns_pkt_set_rcode,       ldns_pkt_set_qdcount,        ldns_pkt_set_ancount,        ldns_pkt_set_nscount,
       ldns_pkt_set_arcount,       ldns_pkt_set_answerfrom,      ldns_pkt_set_querytime,      ldns_pkt_set_size,
       ldns_pkt_set_section_count,       ldns_pkt_set_tsig,        ldns_pkt_edns,        ldns_pkt_edns_udp_size,
       ldns_pkt_edns_extended_rcode,     ldns_pkt_edns_version,    ldns_pkt_edns_z,    ldns_pkt_edns_unassigned,
       ldns_pkt_edns_data,             ldns_pkt_set_edns_udp_size,             ldns_pkt_set_edns_extended_rcode,
       ldns_pkt_set_edns_version,   ldns_pkt_set_edns_z,  ldns_pkt_set_edns_unassigned,  ldns_pkt_set_edns_data.
       And perldocNet::DNS, RFC1034, RFC1035, RFC4033, RFC4034  and RFC4035.

Synopsis

       #include <stdint.h>
       #include <stdbool.h>

       #include <ldns/ldns.h>

        ldns_pkt_section();

        ldns_pkt_type();

See Also