add goodbye messages when service disappear
[project/mdnsd.git] / interface.h
index 5250e96..fcbc3e6 100644 (file)
@@ -18,6 +18,8 @@
 #include <sys/types.h>
 #include <sys/uio.h>
 
+#include <arpa/inet.h>
+
 #include <libubox/uloop.h>
 #include <libubox/vlist.h>
 
@@ -27,14 +29,19 @@ struct interface {
        struct vlist_node node;
 
        const char *name;
+       char *id;
        struct uloop_fd fd;
        struct uloop_timeout reconnect;
 
+       int v6;
        int ifindex;
-       const char *ip;
+       struct in_addr v4_addr;
+       struct in6_addr v6_addr;
 
        struct uloop_timeout announce_timer;
        int announce_state;
+
+       char *mcast_addr;
 };
 
 int interface_add(const char *name);