X-Git-Url: http://git.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=interface.h;h=4bd8e0c1c87b27b18fea95fa598cbf0c35fa7d91;hp=5250e96d333034b71886250e4de18048e32d7172;hb=aa35f31bdb084f12258fb644812889ac977c0630;hpb=c8efd420daed1cae3c46877847aaf05a5b9deb66 diff --git a/interface.h b/interface.h index 5250e96..4bd8e0c 100644 --- a/interface.h +++ b/interface.h @@ -18,6 +18,8 @@ #include #include +#include + #include #include @@ -25,19 +27,32 @@ extern struct vlist_tree interfaces; 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 in_addr v4_netmask; + struct in6_addr v6_addr; + struct in6_addr v6_netmask; + 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); #endif