1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
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       #ifdef HAVE_STDINT_H
12       #include <stdint.h>
13       #endif /* HAVE_STDINT_H */
14
15       #ifdef HAVE_STDBOOL_H
16       #include <stdbool.h>
17       #endif /* HAVE_STDBOOL_H */
18
19       #include <ldns/ldns.h>
20
21       ldns_pkt* ldns_pkt_new();
22
23       void ldns_pkt_free(ldns_pkt *packet);
24
25       void ldns_pkt_print(FILE *output, ldns_pkt *pkt);
26
27       ldns_pkt* ldns_pkt_query_new(ldns_rdf *rr_name,  ldns_rr_type  rr_type,
28       ldns_rr_class rr_class, uint16_t flags);
29
30       ldns_pkt*  ldns_pkt_query_new_frm_str(const char *rr_name, ldns_rr_type
31       rr_type, ldns_rr_class rr_class , uint16_t flags);
32
33       ldns_pkt_type ldns_pkt_reply_type(ldns_pkt *p);
34

DESCRIPTION

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

AUTHOR

73       The  ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
74       Rozendaal and Miek Gieben.
75
76

REPORTING BUGS

78       Please report bugs to ldns-team@nlnetlabs.nl  or  in  our  Bugzilla  at
79       http://www.nlnetlabs.nl/bugs/index.html
80
81       Be sure to select ldns as the product.
82
83
85       Copyright  (c)  2004, 2005 NLnet Labs.  Licensed under the BSD License.
86       There is NO warranty; not even for MERCHANTABILITY  or  FITNESS  FOR  A
87       PARTICULAR PURPOSE.
88
89

SEE ALSO

91       ldns_pkt.   And  perldoc  Net::DNS,  RFC1043, RFC1035, RFC4033, RFC4034
92       and RFC4035.
93

REMARKS

95       This manpage was automaticly generated from the ldns source code by use
96       of Doxygen and some perl.
97
98
99
100                                                             ldns(25 Apr 2005)
Impressum