summaryrefslogtreecommitdiffstats
path: root/avahi-core/rr.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-27 19:11:34 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-27 19:11:34 +0000
commitf6712902a92eb82b6c8d7e7fd0980a20a716fa0d (patch)
tree039df978bd7ea226c54fdce3aa6b17ee5728d492 /avahi-core/rr.h
parenta950fddba0cc84e64bc72eb621429ba05540e98e (diff)
* format unknown DNS records according to RFC3597
* add some DNS class and type validity checks to avahi_server_add() * move DNS type and class definitions to avahi-common/defs.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@896 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/rr.h')
-rw-r--r--avahi-core/rr.h28
1 files changed, 8 insertions, 20 deletions
diff --git a/avahi-core/rr.h b/avahi-core/rr.h
index a2d430a..6bfe0ec 100644
--- a/avahi-core/rr.h
+++ b/avahi-core/rr.h
@@ -33,35 +33,23 @@
AVAHI_C_DECL_BEGIN
-/** DNS record types, see RFC 1035 */
+/** DNS record types, see RFC 1035, in addition to those defined in defs.h */
enum {
- AVAHI_DNS_TYPE_A = 0x01,
- AVAHI_DNS_TYPE_NS = 0x02,
- AVAHI_DNS_TYPE_CNAME = 0x05,
- AVAHI_DNS_TYPE_SOA = 0x06,
- AVAHI_DNS_TYPE_PTR = 0x0C,
- AVAHI_DNS_TYPE_HINFO = 0x0D,
- AVAHI_DNS_TYPE_MX = 0x0F,
- AVAHI_DNS_TYPE_TXT = 0x10,
- AVAHI_DNS_TYPE_AAAA = 0x1C,
- AVAHI_DNS_TYPE_SRV = 0x21,
- AVAHI_DNS_TYPE_ANY = 0xFF /**< Special query type for requesting all records */
+ AVAHI_DNS_TYPE_ANY = 0xFF, /**< Special query type for requesting all records */
+ AVAHI_DNS_TYPE_OPT = 41, /**< EDNS0 option */
+ AVAHI_DNS_TYPE_TKEY = 249,
+ AVAHI_DNS_TYPE_TSIG = 250,
+ AVAHI_DNS_TYPE_IXFR = 251,
+ AVAHI_DNS_TYPE_AXFR = 252
};
-/** DNS record classes, see RFC 1035 */
+/** DNS record classes, see RFC 1035, in addition to those defined in defs.h */
enum {
- AVAHI_DNS_CLASS_IN = 0x01, /**< Probably the only class we will ever use */
AVAHI_DNS_CLASS_ANY = 0xFF, /**< Special query type for requesting all records */
AVAHI_DNS_CACHE_FLUSH = 0x8000, /**< Not really a class but a bit which may be set in response packets, see mDNS spec for more information */
AVAHI_DNS_UNICAST_RESPONSE = 0x8000 /**< Not really a class but a bit which may be set in query packets, see mDNS spec for more information */
};
-/** The default TTL for RRs which contain a host name of some kind. */
-#define AVAHI_DEFAULT_TTL_HOST_NAME (120)
-
-/** The default TTL for all other records. */
-#define AVAHI_DEFAULT_TTL (75*60)
-
/** Encapsulates a DNS query key consisting of class, type and
name. Use avahi_key_ref()/avahi_key_unref() for manipulating the
reference counter. The structure is intended to be treated as "immutable", no