1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

6       ldns_pkt_new,    ldns_pkt_free,   ldns_pkt_print,   ldns_pkt_query_new,
7       ldns_pkt_query_new_frm_str, ldns_pkt_reply_type
8
9

SYNOPSIS

11       #include <stdint.h>
12       #include <stdbool.h>
13
14       #include <ldns/ldns.h>
15
16       ldns_pkt* ldns_pkt_new();
17
18       void ldns_pkt_free(ldns_pkt *packet);
19
20       void ldns_pkt_print(FILE *output, const ldns_pkt *pkt);
21
22       ldns_pkt* ldns_pkt_query_new(ldns_rdf *rr_name,  ldns_rr_type  rr_type,
23       ldns_rr_class rr_class, uint16_t flags);
24
25       ldns_status   ldns_pkt_query_new_frm_str(ldns_pkt   **p,   const   char
26       *rr_name,  ldns_rr_type  rr_type,  ldns_rr_class  rr_class  ,  uint16_t
27       flags);
28
29       ldns_pkt_type ldns_pkt_reply_type(ldns_pkt *p);
30

DESCRIPTION

32       ldns_pkt_new() allocates and initializes a ldns_pkt structure.
33              Returns pointer to the new packet
34
35       ldns_pkt_free()  frees  the  packet structure and all data that it con‐
36              tains.
37              packet: The packet structure to free
38              Returns void
39
40       ldns_pkt_print() Prints the data in the DNS packet to  the  given  file
41              stream (in presentation format)
42
43              output: the file stream to print to
44              pkt: the packet to print
45              Returns void
46
47       ldns_pkt_query_new()  creates a packet with a query in it for the given
48              name, type and class.
49              rr_name: the name to query for
50              rr_type: the type to query for
51              rr_class: the class to query for
52              flags: packet flags
53              Returns ldns_pkt* a pointer to the new pkt
54
55       ldns_pkt_query_new_frm_str() creates a query packet for the given name,
56              type, class.
57              p: the packet to be returned
58              rr_name: the name to query for (as string)
59              rr_type: the type to query for
60              rr_class: the class to query for
61              flags: packet flags
62              Returns LDNS_STATUS_OK or a ldns_status mesg with the error
63
64       ldns_pkt_reply_type() looks inside the packet to determine what kind of
65              packet it is, AUTH, NXDOMAIN, REFERRAL, etc.
66              p: the packet to examine
67              Returns the type of packet
68

AUTHOR

70       The ldns team at NLnet Labs. Which consists out  of  Jelte  Jansen  and
71       Miek Gieben.
72
73

REPORTING BUGS

75       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our bugzilla at
76       http://www.nlnetlabs.nl/bugs/index.html
77
78
80       Copyright (c) 2004 - 2006 NLnet Labs.
81
82       Licensed under the BSD License. There is NO warranty; not even for MER‐
83       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
84
85

SEE ALSO

87       ldns_pkt.   And  perldoc  Net::DNS,  RFC1034, RFC1035, RFC4033, RFC4034
88       and RFC4035.
89

REMARKS

91       This manpage was automaticly generated from the ldns source code by use
92       of Doxygen and some perl.
93
94
95
96                                  30 May 2006                          ldns(3)
Impressum