X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fiface.h;h=303d230cac0524b934cf36490c856906a627d40c;hb=HEAD;hp=22d225ee9acdfb80906ea5584716457b810f3dfd;hpb=a4c3af8516b1384e2856904719e75cda5bf6d669;p=catta diff --git a/src/iface.h b/src/iface.h index 22d225e..303d230 100644 --- a/src/iface.h +++ b/src/iface.h @@ -42,6 +42,8 @@ typedef struct CattaHwInterface CattaHwInterface; #include "iface-linux.h" #elif defined(HAVE_PF_ROUTE) #include "iface-pfroute.h" +#elif defined(_WIN32) +#include "iface-windows.h" #else typedef struct CattaInterfaceMonitorOSDep CattaInterfaceMonitorOSDep; struct CattaInterfaceMonitorOSDep { @@ -96,7 +98,7 @@ struct CattaInterface { CattaInterfaceMonitor *monitor; CattaHwInterface *hardware; - CATTA_LLIST_FIELDS(CattaInterface, interface); + CATTA_LLIST_FIELDS(CattaInterface, iface); CATTA_LLIST_FIELDS(CattaInterface, by_hardware); CattaProtocol protocol; @@ -119,7 +121,7 @@ struct CattaInterface { struct CattaInterfaceAddress { CattaInterfaceMonitor *monitor; - CattaInterface *interface; + CattaInterface *iface; CATTA_LLIST_FIELDS(CattaInterfaceAddress, address); @@ -155,7 +157,7 @@ void catta_hw_interface_free(CattaHwInterface *hw, int send_goodbye); void catta_hw_interface_update_rrs(CattaHwInterface *hw, int remove_rrs); void catta_hw_interface_check_relevant(CattaHwInterface *hw); -CattaHwInterface* catta_interface_monitor_get_hw_interface(CattaInterfaceMonitor *m, int idx); +CattaHwInterface* catta_interface_monitor_get_hw_interface(CattaInterfaceMonitor *m, CattaIfIndex idx); /* CattaInterface */