| 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) { |
|
211
|
51 |
32 |
ipversion = strchr(buf1, '.') ? 4 : 6; |
|
215
|
1 |
908 |
if (!iplen) { |
|
224
|
0 |
908 |
if (!res) { |
|
231
|
22 |
886 |
if (num_addrs == 1) { |
|
236
|
504 |
382 |
endipversion = strchr(buf2, '.') ? 4 : 6; |
|
237
|
0 |
886 |
if (!endipversion) { |
|
240
|
0 |
886 |
if (endipversion != ipversion) { |
|
250
|
0 |
886 |
if (!res) { |
|
258
|
0 |
886 |
if (!res) { |
|
261
|
2 |
884 |
if (!cmp_res) { |
|
273
|
0 |
906 |
if (!res) { |
|
277
|
134 |
772 |
if (pcount == 1) { |
|
281
|
0 |
134 |
if (!res) { |
|
289
|
0 |
134 |
if (!res) { |
|
300
|
21304 |
906 |
for (i = 0; i < pcount; i++) { |
|
304
|
506 |
400 |
if (ipversion == 4) { |
|
309
|
0 |
400 |
if (!res) { |
|
333
|
377 |
0 |
if (!ref || !(*ref)) { |
|
|
0 |
377 |
if (!ref || !(*ref)) { |
|
336
|
377 |
0 |
raw_begin = SvPV(*ref, len); |
|
358
|
376 |
0 |
if (!ref || !(*ref)) { |
|
|
0 |
376 |
if (!ref || !(*ref)) { |
|
361
|
376 |
0 |
raw_end = SvPV(*ref, len); |
|
379
|
368 |
0 |
&& NI_get_end_n128(ipo, end); |
|
|
368 |
0 |
&& NI_get_end_n128(ipo, end); |
|
399
|
1 |
36 |
if (!ipstr) { |
|
403
|
1 |
36 |
if (version == 6) { |
|
410
|
1 |
36 |
if (!res) { |
|
432
|
10 |
2 |
if ((last_ip = NI_hv_get_pv(ipo, "last_ip", 7))) { |
|
438
|
1 |
1 |
if (!last_bin) { |
|
445
|
1 |
1 |
if (!res) { |
|
478
|
3 |
4 |
if (is_prefix) { |
|
480
|
1 |
2 |
if (!res) { |
|
487
|
1 |
3 |
if (!first_ip) { |
|
493
|
0 |
3 |
if (!second_ip) { |
|
517
|
6 |
3 |
if ((begin == 0) && (end == 0xFFFFFFFF)) { |
|
|
3 |
3 |
if ((begin == 0) && (end == 0xFFFFFFFF)) { |
|
539
|
0 |
8 |
if (!res) { |
|
543
|
8 |
0 |
if ( n128_scan1(&begin) == INT_MAX |
|
544
|
7 |
1 |
&& n128_scan0(&end) == INT_MAX) { |
|
596
|
0 |
7 |
if (!NI_get_begin_n128(ipo, &begin)) { |
|
617
|
1 |
18 |
if ((intformat = NI_hv_get_pv(ipo, "intformat", 9))) { |
|
628
|
16 |
2 |
if (res) { |
|
662
|
0 |
2 |
if (!NI_get_begin_n128(ipo, &begin)) { |
|
685
|
1 |
6 |
if ((hexformat = NI_hv_get_pv(ipo, "hexformat", 9))) { |
|
696
|
4 |
2 |
if (res) { |
|
716
|
1 |
6 |
if ((hexmask = NI_hv_get_pv(ipo, "hexmask", 7))) { |
|
725
|
1 |
5 |
HV_PV_GET_OR_RETURN(binmask, ipo, "binmask", 7); |
|
752
|
1 |
7 |
if (!ip) { |
|
757
|
1 |
7 |
if (!is_prefix) { |
|
763
|
1 |
6 |
if ((prefix = NI_hv_get_pv(ipo, "prefix", 6))) { |
|
769
|
1 |
5 |
if (prefixlen == -1) { |
|
795
|
2 |
7 |
if (!is_prefix) { |
|
797
|
1 |
1 |
if (!ip) { |
|
806
|
1 |
6 |
if ((mask = NI_hv_get_pv(ipo, "mask", 4))) { |
|
812
|
1 |
5 |
if (!binmask) { |
|
819
|
1 |
5 |
if (!res) { |
|
845
|
1 |
6 |
if ((iptype = NI_hv_get_pv(ipo, "iptype", 6))) { |
|
851
|
1 |
5 |
if (!binip) { |
|
858
|
2 |
4 |
if (!res) { |
|
884
|
1 |
5 |
if (!ip) { |
|
888
|
1 |
5 |
if (!NI_hv_get_iv(ipo, "is_prefix", 9)) { |
|
899
|
1 |
4 |
if (!res) { |
|
924
|
8 |
5 |
if ((last_bin = NI_hv_get_pv(ipo, "last_bin", 8))) { |
|
932
|
2 |
3 |
if (is_prefix) { |
|
934
|
1 |
1 |
if (!binip) { |
|
941
|
1 |
2 |
if (!last_ip) { |
|
947
|
1 |
2 |
if (!res) { |
|
983
|
0 |
8 |
if (!NI_get_end_n128(ipo, &end)) { |
|
1004
|
1 |
17 |
if ((last_int = NI_hv_get_pv(ipo, "last_int", 8))) { |
|
1015
|
15 |
2 |
if (res) { |
|
1039
|
1 |
3 |
if (!binip1) { |
|
1044
|
1 |
3 |
if (!binip2) { |
|
1049
|
1 |
3 |
if (!res) { |
|
1077
|
1 |
3 |
if (!binip1) { |
|
1082
|
1 |
3 |
if (!binip2) { |
|
1087
|
1 |
3 |
if (!res) { |
|
1098
|
0 |
3 |
if (!res) { |
|
1107
|
0 |
3 |
if (!res) { |
|
1136
|
0 |
1 |
if (res == 0) { |
|
1140
|
0 |
1 |
if (res == 160) { |
|
1142
|
0 |
0 |
if (!ip1) { |
|
1146
|
0 |
0 |
if (!ip2) { |
|
1154
|
0 |
1 |
if (res == 161) { |
|
1156
|
0 |
0 |
if (!ip1) { |
|
1160
|
0 |
0 |
if (!ip2) { |
|
1188
|
0 |
2 |
if (!NI_get_n128s(ipo1, &b1, &e1)) { |
|
1191
|
0 |
2 |
if (!NI_get_n128s(ipo2, &b2, &e2)) { |
|
1197
|
0 |
2 |
if (res == 0) { |
|
1201
|
1 |
1 |
if (res == 160) { |
|
1203
|
0 |
1 |
if (!ip1) { |
|
1207
|
0 |
1 |
if (!ip2) { |
|
1215
|
0 |
1 |
if (res == 161) { |
|
1217
|
0 |
0 |
if (!ip1) { |
|
1221
|
0 |
0 |
if (!ip2) { |
|
1254
|
2 |
2 |
if (!res) { |
|
1263
|
0 |
2 |
if (!res) { |
|
1308
|
0 |
5 |
if (!NI_get_n128s(ipo1, &b1, &e1)) { |
|
1311
|
0 |
5 |
if (!NI_get_n128s(ipo2, &b2, &e2)) { |
|
1354
|
1 |
433 |
if ((0xFFFFFFFF - num) < begin) { |
|
1357
|
2 |
431 |
if ((begin + num) > end) { |
|
1384
|
0 |
346 |
if (!NI_get_n128s(ipo, &begin, &end)) { |
|
1389
|
0 |
346 |
if (!res) { |
|
1392
|
346 |
0 |
if ( (n128_scan1(num) == INT_MAX) |
|
1393
|
345 |
1 |
|| (n128_cmp(num, &begin) <= 0) |
|
1394
|
2 |
343 |
|| (n128_cmp(num, &end) > 0)) { |
|
1427
|
436 |
349 |
if (version == 4) { |
|
1430
|
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)) { |
|
1433
|
0 |
434 |
if (num_ulong > 0xFFFFFFFF) { |
|
1437
|
3 |
431 |
if (!res) { |
|
1440
|
349 |
0 |
} else if (version == 6) { |
|
1442
|
3 |
346 |
if (!res) { |
|
1447
|
3 |
343 |
if (!res) { |
|
1459
|
0 |
774 |
if (!res) { |