#ifndef HV_IFCONFIG_H_ #define HV_IFCONFIG_H_ #include typedef struct ifconfig_s { char name[128]; char ip[32]; char mask[32]; char mac[32]; } ifconfig_t; /* * @test std::vector ifcs; ifconfig(ifcs); for (auto& item : ifcs) { printf("%s\nip: %s\nmask: %s\nmac: %s\n\n", item.name, item.ip, item.mask, item.mac); } */ int ifconfig(std::vector& ifcs); #endif // HV_IFCONFIG_H_