X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fiface.h;h=1372e6fd137ffcf7d13e3b42bd217813325590ae;hb=219241ab5223b705ade51485ea9227b0a6089c0d;hp=d18bbe6888fcb7bfcb28a6f7d2d60ed633bf0a36;hpb=4de3df3db7df43474176533d0b5fac851dd4a9b4;p=catta diff --git a/avahi-core/iface.h b/avahi-core/iface.h index d18bbe6..1372e6f 100644 --- a/avahi-core/iface.h +++ b/avahi-core/iface.h @@ -40,6 +40,8 @@ typedef struct AvahiHwInterface AvahiHwInterface; #include "dns.h" #include "announce.h" +#define AVAHI_MAX_MAC_ADDRESS 32 + struct AvahiInterfaceMonitor { AvahiServer *server; AvahiNetlink *netlink; @@ -66,6 +68,11 @@ struct AvahiHwInterface { guint flags; guint mtu; + guint8 mac_address[AVAHI_MAX_MAC_ADDRESS]; + guint mac_address_size; + + AvahiEntryGroup *entry_group; + AVAHI_LLIST_HEAD(AvahiInterface, interfaces); }; @@ -127,4 +134,6 @@ void avahi_interface_monitor_walk(AvahiInterfaceMonitor *m, gint index, guchar p void avahi_update_host_rrs(AvahiInterfaceMonitor *m, gboolean remove); +gboolean avahi_address_is_local(AvahiInterfaceMonitor *m, const AvahiAddress *a); + #endif