X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=rr.h;h=465c3286de7972966b91d9965daedef615feb050;hb=3bbfb70938c6b08b72a8958e5a6499a9280a7d8f;hp=1ba6d958533abed0051669e74a852a57c3658e33;hpb=a20c01bd12216d409e0dfc5d3bbacc940352bfce;p=catta diff --git a/rr.h b/rr.h index 1ba6d95..465c328 100644 --- 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,13 @@ 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); + +gint flx_record_lexicographical_compare(flxRecord *a, flxRecord *b); + #endif