X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fiface.h;h=24da316679bf3e961406e82daa4052a3fcefb837;hb=461b5328c99ef6af64f8d1313f63af8228ef720d;hp=76b3540c0ebe5e6fe7439411be605a60cb699c4c;hpb=e59d53a034f0cfdede9c439d1fd7e5f25aea5802;p=catta diff --git a/avahi-core/iface.h b/avahi-core/iface.h index 76b3540..24da316 100644 --- a/avahi-core/iface.h +++ b/avahi-core/iface.h @@ -30,7 +30,7 @@ typedef struct AvahiHwInterface AvahiHwInterface; #include #include -#include "server.h" +#include "internal.h" #include "cache.h" #include "response-sched.h" #include "query-sched.h" @@ -42,11 +42,23 @@ typedef struct AvahiHwInterface AvahiHwInterface; #ifdef HAVE_NETLINK #include "iface-linux.h" +#elif defined(HAVE_PF_ROUTE) +#include "iface-pfroute.h" #else -#error "No network configuration notification system available" +typedef struct AvahiInterfaceMonitorOSDep AvahiInterfaceMonitorOSDep; +struct AvahiInterfaceMonitorOSDep { + + unsigned query_addr_seq, query_link_seq; + + enum { + LIST_IFACE, + LIST_ADDR, + LIST_DONE + } list; +}; #endif -#define AVAHI_MAX_MAC_ADDRESS 32 +#define AVAHI_MAC_ADDRESS_MAX 32 struct AvahiInterfaceMonitor { AvahiServer *server; @@ -70,7 +82,7 @@ struct AvahiHwInterface { unsigned mtu; - uint8_t mac_address[AVAHI_MAX_MAC_ADDRESS]; + uint8_t mac_address[AVAHI_MAC_ADDRESS_MAX]; size_t mac_address_size; AvahiSEntryGroup *entry_group;