add good bye messages
[project/mdnsd.git] / interface.h
index fcbc3e6..4a3c67e 100644 (file)
@@ -27,6 +27,7 @@ extern struct vlist_tree interfaces;
 
 struct interface {
        struct vlist_node node;
+       struct interface *peer;
 
        const char *name;
        char *id;
@@ -34,9 +35,13 @@ struct interface {
        struct uloop_timeout reconnect;
 
        int v6;
+       int multicast;
        int ifindex;
+
        struct in_addr v4_addr;
        struct in6_addr v6_addr;
+       char v4_addrs[16];
+       char v6_addrs[64];
 
        struct uloop_timeout announce_timer;
        int announce_state;
@@ -45,6 +50,7 @@ struct interface {
 };
 
 int interface_add(const char *name);
+void interface_shutdown(void);
 int interface_send_packet(struct interface *iface, struct iovec *iov, int iov_len);
 
 #endif