| line |
true |
false |
branch |
|
101
|
0 |
907 |
HV_PV_GET_OR_RETURN(binip, ipo, "binip", 5); |
|
102
|
0 |
907 |
HV_PV_GET_OR_RETURN(last_bin, ipo, "last_bin", 8); |
|
108
|
906 |
1 |
if (!res || !(*pcount)) { |
|
|
0 |
906 |
if (!res || !(*pcount)) { |
|
132
|
0 |
400 |
HV_PV_GET_OR_RETURN(binbuf1, ipo, "binip", 5); |
|
133
|
0 |
400 |
HV_PV_GET_OR_RETURN(binbuf2, ipo, "last_bin", 8); |
|
189
|
5 |
909 |
if (!num_addrs) { |
|
210
|
83 |
826 |
if (!ipversion) { |
|
212
|
0 |
83 |
if (!ipversion) { |
|
218
|
1 |
908 |
if (!iplen) { |
|
227
|
0 |
908 |
if (!res) { |
|
234
|
22 |
886 |
if (num_addrs == 1) { |
|
240
|
0 |
886 |
if (!endipversion) { |
|
243
|
0 |
886 |
if (endipversion != ipversion) { |
|
253
|
0 |
886 |
if (!res) { |
|
261
|
0 |
886 |
if (!res) { |
|
264
|
2 |
884 |
if (!cmp_res) { |
|
276
|
0 |
906 |
if (!res) { |
|
280
|
134 |
772 |
if (pcount == 1) { |
|
284
|
0 |
134 |
if (!res) { |
|
292
|
0 |
134 |
if (!res) { |
|
303
|
21304 |
906 |
for (i = 0; i < pcount; i++) { |
|
307
|
506 |
400 |
if (ipversion == 4) { |
|
312
|
0 |
400 |
if (!res) { |
|
336
|
377 |
0 |
if (!ref || !(*ref)) { |
|
|
0 |
377 |
if (!ref || !(*ref)) { |
|
339
|
377 |
0 |
raw_begin = SvPV(*ref, len); |
|
361
|
376 |
0 |
if (!ref || !(*ref)) { |
|
|
0 |
376 |
if (!ref || !(*ref)) { |
|
364
|
376 |
0 |
raw_end = SvPV(*ref, len); |
|
382
|
368 |
0 |
&& NI_get_end_n128(ipo, end); |
|
|
368 |
0 |
&& NI_get_end_n128(ipo, end); |
|
402
|
1 |
36 |
if (!ipstr) { |
|
406
|
1 |
36 |
if (version == 6) { |
|
413
|
1 |
36 |
if (!res) { |
|
435
|
10 |
2 |
if ((last_ip = NI_hv_get_pv(ipo, "last_ip", 7))) { |
|
441
|
1 |
1 |
if (!last_bin) { |
|
448
|
1 |
1 |
if (!res) { |
|
481
|
3 |
4 |
if (is_prefix) { |
|
483
|
1 |
2 |
if (!res) { |
|
490
|
1 |
3 |
if (!first_ip) { |
|
496
|
0 |
3 |
if (!second_ip) { |
|
520
|
6 |
3 |
if ((begin == 0) && (end == 0xFFFFFFFF)) { |
|
|
3 |
3 |
if ((begin == 0) && (end == 0xFFFFFFFF)) { |
|
542
|
0 |
8 |
if (!res) { |
|
546
|
8 |
0 |
if ( n128_scan1(&begin) == INT_MAX |
|
547
|
7 |
1 |
&& n128_scan0(&end) == INT_MAX) { |
|
599
|
0 |
7 |
if (!NI_get_begin_n128(ipo, &begin)) { |
|
620
|
1 |
18 |
if ((intformat = NI_hv_get_pv(ipo, "intformat", 9))) { |
|
631
|
16 |
2 |
if (res) { |
|
665
|
0 |
2 |
if (!NI_get_begin_n128(ipo, &begin)) { |
|
688
|
1 |
6 |
if ((hexformat = NI_hv_get_pv(ipo, "hexformat", 9))) { |
|
699
|
4 |
2 |
if (res) { |
|
719
|
1 |
6 |
if ((hexmask = NI_hv_get_pv(ipo, "hexmask", 7))) { |
|
728
|
1 |
5 |
HV_PV_GET_OR_RETURN(binmask, ipo, "binmask", 7); |
|
755
|
1 |
7 |
if (!ip) { |
|
760
|
1 |
7 |
if (!is_prefix) { |
|
766
|
1 |
6 |
if ((prefix = NI_hv_get_pv(ipo, "prefix", 6))) { |
|
772
|
1 |
5 |
if (prefixlen == -1) { |
|
798
|
2 |
7 |
if (!is_prefix) { |
|
800
|
1 |
1 |
if (!ip) { |
|
809
|
1 |
6 |
if ((mask = NI_hv_get_pv(ipo, "mask", 4))) { |
|
815
|
1 |
5 |
if (!binmask) { |
|
822
|
1 |
5 |
if (!res) { |
|
848
|
1 |
6 |
if ((iptype = NI_hv_get_pv(ipo, "iptype", 6))) { |
|
854
|
1 |
5 |
if (!binip) { |
|
861
|
2 |
4 |
if (!res) { |
|
887
|
1 |
5 |
if (!ip) { |
|
891
|
1 |
5 |
if (!NI_hv_get_iv(ipo, "is_prefix", 9)) { |
|
902
|
1 |
4 |
if (!res) { |
|
927
|
8 |
5 |
if ((last_bin = NI_hv_get_pv(ipo, "last_bin", 8))) { |
|
935
|
2 |
3 |
if (is_prefix) { |
|
937
|
1 |
1 |
if (!binip) { |
|
944
|
1 |
2 |
if (!last_ip) { |
|
950
|
1 |
2 |
if (!res) { |
|
986
|
0 |
8 |
if (!NI_get_end_n128(ipo, &end)) { |
|
1007
|
1 |
17 |
if ((last_int = NI_hv_get_pv(ipo, "last_int", 8))) { |
|
1018
|
15 |
2 |
if (res) { |
|
1042
|
1 |
3 |
if (!binip1) { |
|
1047
|
1 |
3 |
if (!binip2) { |
|
1052
|
1 |
3 |
if (!res) { |
|
1080
|
1 |
3 |
if (!binip1) { |
|
1085
|
1 |
3 |
if (!binip2) { |
|
1090
|
1 |
3 |
if (!res) { |
|
1101
|
0 |
3 |
if (!res) { |
|
1110
|
0 |
3 |
if (!res) { |
|
1139
|
0 |
1 |
if (res == 0) { |
|
1143
|
0 |
1 |
if (res == 160) { |
|
1145
|
0 |
0 |
if (!ip1) { |
|
1149
|
0 |
0 |
if (!ip2) { |
|
1157
|
0 |
1 |
if (res == 161) { |
|
1159
|
0 |
0 |
if (!ip1) { |
|
1163
|
0 |
0 |
if (!ip2) { |
|
1191
|
0 |
2 |
if (!NI_get_n128s(ipo1, &b1, &e1)) { |
|
1194
|
0 |
2 |
if (!NI_get_n128s(ipo2, &b2, &e2)) { |
|
1200
|
0 |
2 |
if (res == 0) { |
|
1204
|
1 |
1 |
if (res == 160) { |
|
1206
|
0 |
1 |
if (!ip1) { |
|
1210
|
0 |
1 |
if (!ip2) { |
|
1218
|
0 |
1 |
if (res == 161) { |
|
1220
|
0 |
0 |
if (!ip1) { |
|
1224
|
0 |
0 |
if (!ip2) { |
|
1257
|
2 |
2 |
if (!res) { |
|
1266
|
0 |
2 |
if (!res) { |
|
1311
|
0 |
5 |
if (!NI_get_n128s(ipo1, &b1, &e1)) { |
|
1314
|
0 |
5 |
if (!NI_get_n128s(ipo2, &b2, &e2)) { |
|
1357
|
1 |
433 |
if ((0xFFFFFFFF - num) < begin) { |
|
1360
|
2 |
431 |
if ((begin + num) > end) { |
|
1387
|
0 |
346 |
if (!NI_get_n128s(ipo, &begin, &end)) { |
|
1392
|
0 |
346 |
if (!res) { |
|
1395
|
346 |
0 |
if ( (n128_scan1(num) == INT_MAX) |
|
1396
|
345 |
1 |
|| (n128_cmp(num, &begin) <= 0) |
|
1397
|
2 |
343 |
|| (n128_cmp(num, &end) > 0)) { |
|
1430
|
436 |
349 |
if (version == 4) { |
|
1433
|
434 |
2 |
if (STRTOUL_FAILED(num_ulong, num, endptr)) { |
|
|
0 |
434 |
if (STRTOUL_FAILED(num_ulong, num, endptr)) { |
|
|
0 |
2 |
if (STRTOUL_FAILED(num_ulong, num, endptr)) { |
|
|
0 |
434 |
if (STRTOUL_FAILED(num_ulong, num, endptr)) { |
|
|
0 |
0 |
if (STRTOUL_FAILED(num_ulong, num, endptr)) { |
|
1436
|
0 |
434 |
if (num_ulong > 0xFFFFFFFF) { |
|
1440
|
3 |
431 |
if (!res) { |
|
1443
|
349 |
0 |
} else if (version == 6) { |
|
1445
|
3 |
346 |
if (!res) { |
|
1450
|
3 |
343 |
if (!res) { |
|
1462
|
0 |
774 |
if (!res) { |