概述
example: str_ip_mask = "192.168.1.1/24";
int ip_mask_parse(char * str_ip_mask)
{
char *pos = str_ip_mask;
char str_ip[44] = {0};
unsigned int str_ip_len = 0;
char str_mask[8] = {0};
unsigned int str_mask_len = 0;
struct in_addr ipv4_addr;
struct in6_addr v6_addr;
int mask = 0;
int is_ipv6 = 0;
int mask_start= 0;
while('