X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=interface.h;h=4a3c67eb2f7c4f51a8a772d96af6b996b3c90a10;hb=4297eef0b59183f79811b6cacf0e4ac0783e4baf;hp=05104c27ad6205eb37677a3e32555ad3273c0cd7;hpb=431db651f04d18d2ee454e49d14806f08283f28c;p=project%2Fmdnsd.git diff --git a/interface.h b/interface.h index 05104c2..4a3c67e 100644 --- a/interface.h +++ b/interface.h @@ -18,27 +18,39 @@ #include #include +#include + #include #include extern struct vlist_tree interfaces; -extern struct interface *cur_iface; struct interface { struct vlist_node node; + struct interface *peer; const char *name; + char *id; struct uloop_fd fd; + struct uloop_timeout reconnect; + int v6; + int multicast; int ifindex; - const char *ip; + + 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; + + char *mcast_addr; }; int interface_add(const char *name); +void interface_shutdown(void); int interface_send_packet(struct interface *iface, struct iovec *iov, int iov_len); -int interface_socket_setup(struct interface *iface); #endif