1 #define NAME_SIZE (128+4) 2 #define MAC_SIZE 6 3 4 typedef long ipv4; 5 typedef long ipv6[4]; 6 7 struct network_interface { 8 wchar_t name[NAME_SIZE]; 9 ipv4 ip_address; 10 ipv6 ip6_address; 11 unsigned char mac_address[MAC_SIZE]; 12 }; 13 14 int c_get_network_interfaces(struct network_interface *ns, int max_ns); 15