1 #include <stdio.h> 2 #include <string.h> 3 #include <math.h> 4 5 //ipv4地址转换 6 int ipv4_to_i(const char *ip, unsigned int *ipv4_addr) 7 { 8 char str_ip_index[4] = {'
1 #include <stdio.h> 2 #include <string.h> 3 #include <math.h> 4 5 //ipv4地址转换 6 int ipv4_to_i(const char *ip, unsigned int *ipv4_addr) 7 { 8 char str_ip_index[4] = {'