"Fossies" - the Fresh Open Source Software Archive
Member "libspf2-1.2.10/src/include/spf_dns_null.h" (28 Jan 2012, 1548 Bytes) of package /linux/privat/libspf2-1.2.10.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard
) with prefixed line numbers and code folding
Alternatively you can here view
the uninterpreted source code file.
For more information about "spf_dns_null.h" see the Fossies "Dox" file reference
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of either:
5 * a) The GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 2.1, or (at your option) any
7 * later version,
9 * OR
11 * b) The two-clause BSD license.
13 * These licenses can be found with the distribution in the file LICENSES
19 #ifndef INC_SPF_DNS_NULL
20 #define INC_SPF_DNS_NULL
22 /* For an overview of the DNS layer system, see spf_dns.h */
24 /* The null DNS layer is really just a minimal DNS layer. It is
25 * useful when you don't want to do any real DNS lookups, or when you
26 * want to be able to get debugging information about the requests
27 * flowing between DNS layers.
29 * Multiple null DNS layers can be created, which can be useful for
30 * debugging purposes.
35 * These routines take care of creating/destroying/etc. the objects
36 * that hold the DNS layer configuration. spfdcid objects contain
37 * malloc'ed data, so they must be destroyed when you are finished
38 * with them, or you will leak memory.
42 * if debugging is enabled, information about the DNS queries sent to
43 * the lower DNS layer, and the results returned from that layer will
44 * be displayed.
46 * The "name" will be used when displaying debugging information so
47 * that you can tell which location in the stack of DNS layers
48 * generated the output.
51 SPF_dns_server_t *SPF_dns_null_new( SPF_dns_server_t *layer_below,
52 const char *name, int debug);