]> git.meshlink.io Git - catta/blobdiff - rr.h
add client part of probing
[catta] / rr.h
diff --git a/rr.h b/rr.h
index 1ba6d958533abed0051669e74a852a57c3658e33..483fcaae7e1724d5bac5b787ccb91bf0ed47b12d 100644 (file)
--- a/rr.h
+++ b/rr.h
@@ -21,7 +21,8 @@ enum {
 };
 
 enum {
-    FLX_DNS_CLASS_IN = 0x01
+    FLX_DNS_CLASS_IN = 0x01,
+    FLX_DNS_CACHE_FLUSH = 0x8000
 };
 
 #define FLX_DEFAULT_TTL (120*60)
@@ -103,4 +104,12 @@ gboolean flx_record_equal_no_ttl(const flxRecord *a, const flxRecord *b);
 
 flxRecord *flx_record_copy(flxRecord *r);
 
+/* returns a maximum estimate for the space that is needed to store
+ * this key in a DNS packet */
+guint flx_key_get_estimate_size(flxKey *k);
+
+/* ditto */
+guint flx_record_get_estimate_size(flxRecord *r);
+
+
 #endif