summaryrefslogtreecommitdiffstats
path: root/avahi-core/iface.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-06-03 12:45:47 +0000
committerLennart Poettering <lennart@poettering.net>2005-06-03 12:45:47 +0000
commit4ff0807c04fcc239de52a793bceb88e7f3408f3f (patch)
treed91040a9cbf354d21d1379efb341a7d52282b681 /avahi-core/iface.c
parentf1b541eb614861312f917dab1bf75ad8267e321a (diff)
* implement reflection (including legacy unicast reflection)
* implement a history in the probe scheduler git-svn-id: file:///home/lennart/svn/public/avahi/trunk@92 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/iface.c')
-rw-r--r--avahi-core/iface.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/avahi-core/iface.c b/avahi-core/iface.c
index ff7106b..d74a96d 100644
--- a/avahi-core/iface.c
+++ b/avahi-core/iface.c
@@ -646,3 +646,17 @@ void avahi_update_host_rrs(AvahiInterfaceMonitor *m, gboolean remove) {
for (i = m->interfaces; i; i = i->interface_next)
update_interface_rr(m, i, remove);
}
+
+gboolean avahi_address_is_local(AvahiInterfaceMonitor *m, const AvahiAddress *a) {
+ AvahiInterface *i;
+ AvahiInterfaceAddress *ia;
+ g_assert(m);
+ g_assert(a);
+
+ for (i = m->interfaces; i; i = i->interface_next)
+ for (ia = i->addresses; ia; ia = ia->address_next)
+ if (avahi_address_cmp(a, &ia->address) == 0)
+ return TRUE;
+
+ return FALSE;
+}