summaryrefslogtreecommitdiffstats
path: root/avahi-core/rr.h
diff options
context:
space:
mode:
authorRob Leslie <rob@mars.org>2009-03-03 21:37:15 -0800
committerLennart Poettering <lennart@poettering.net>2009-04-19 01:11:15 +0200
commit2ea7e99ed0dcfd371fef5aeecd3de77da1dfcd4f (patch)
tree52d29835ce1ab9db44248ea37f2e19f835b9e310 /avahi-core/rr.h
parentfd5bae5a6626956acd11995628fb83e7e8182c1f (diff)
reflector: Don't reflect link-local IPv4 or IPv6 addresses
Modify avahi-daemon so that it doesn't advertise patently useless link-local addresses on the wrong interfaces when reflecting mDNS responses.
Diffstat (limited to 'avahi-core/rr.h')
-rw-r--r--avahi-core/rr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/avahi-core/rr.h b/avahi-core/rr.h
index 6bfe0ec..2160507 100644
--- a/avahi-core/rr.h
+++ b/avahi-core/rr.h
@@ -169,6 +169,9 @@ int avahi_rdata_parse(AvahiRecord *record, const void* rdata, size_t size);
/** Serialize an AvahiRecord object into binary rdata. This function is actually implemented in dns.c */
size_t avahi_rdata_serialize(AvahiRecord *record, void *rdata, size_t max_size);
+/** Return TRUE if the AvahiRecord object is a link-local A or AAAA address */
+int avahi_record_is_link_local_address(const AvahiRecord *r);
+
AVAHI_C_DECL_END
#endif