diff options
author | Rob Leslie <rob@mars.org> | 2009-03-03 21:37:15 -0800 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-04-19 01:11:15 +0200 |
commit | 2ea7e99ed0dcfd371fef5aeecd3de77da1dfcd4f (patch) | |
tree | 52d29835ce1ab9db44248ea37f2e19f835b9e310 /avahi-core/rr.h | |
parent | fd5bae5a6626956acd11995628fb83e7e8182c1f (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.h | 3 |
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 |