propagate sockaddr and port form the receive function to the parser
[project/mdnsd.git] / interface.h
index 2f7aea4c5e69e93331dd79aaebd44b54bc4fe5b2..4a3c67eb2f7c4f51a8a772d96af6b996b3c90a10 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;
@@ -49,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