Lines Matching refs:v6stat
1329 IPV6_STAT v6stat; in ipv6_from_asc() local
1331 v6stat.total = 0; in ipv6_from_asc()
1332 v6stat.zero_pos = -1; in ipv6_from_asc()
1333 v6stat.zero_cnt = 0; in ipv6_from_asc()
1340 if (!CONF_parse_list(in, ':', 0, ipv6_cb, &v6stat)) in ipv6_from_asc()
1345 if (v6stat.zero_pos == -1) { in ipv6_from_asc()
1347 if (v6stat.total != 16) in ipv6_from_asc()
1351 if (v6stat.total == 16) in ipv6_from_asc()
1354 if (v6stat.zero_cnt > 3) in ipv6_from_asc()
1357 else if (v6stat.zero_cnt == 3) { in ipv6_from_asc()
1358 if (v6stat.total > 0) in ipv6_from_asc()
1362 else if (v6stat.zero_cnt == 2) { in ipv6_from_asc()
1363 if ((v6stat.zero_pos != 0) && in ipv6_from_asc()
1364 (v6stat.zero_pos != v6stat.total)) in ipv6_from_asc()
1369 if ((v6stat.zero_pos == 0) || in ipv6_from_asc()
1370 (v6stat.zero_pos == v6stat.total)) in ipv6_from_asc()
1377 if (v6stat.zero_pos >= 0) { in ipv6_from_asc()
1379 memcpy(v6, v6stat.tmp, v6stat.zero_pos); in ipv6_from_asc()
1381 memset(v6 + v6stat.zero_pos, 0, 16 - v6stat.total); in ipv6_from_asc()
1383 if (v6stat.total != v6stat.zero_pos) in ipv6_from_asc()
1384 memcpy(v6 + v6stat.zero_pos + 16 - v6stat.total, in ipv6_from_asc()
1385 v6stat.tmp + v6stat.zero_pos, in ipv6_from_asc()
1386 v6stat.total - v6stat.zero_pos); in ipv6_from_asc()
1388 memcpy(v6, v6stat.tmp, 16); in ipv6_from_asc()