Changeset 91919 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Oct 21, 2021 1:10:52 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147724
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTNetIPv4.cpp
r91766 r91919 319 319 GOODCIDR("1.2.3.4/255.255.255.255", 0x01020304, 32); 320 320 321 #if 0322 /** @todo doesn't support 0/0 yet */323 321 GOODCIDR("0.0.0.0/0", 0x00000000, 0); 324 322 GOODCIDR("0.0.0.0/0x0", 0x00000000, 0); 325 323 GOODCIDR("0.0.0.0/0.0.0.0", 0x00000000, 0); 326 #endif 324 325 /* 326 * we allow zero prefix mostly for the sake of the above 327 * "everything"/default case, but allow it on everything - a 328 * conscientious caller should be doing more checks on the result 329 * anyway. 330 */ 331 GOODCIDR("1.2.3.4/0", 0x01020304, 0); /* prefix can be zero */ 327 332 328 333 GOODCIDR("\t " "1.2.3.4/24", 0x01020304, 24); /* leading spaces ok */ … … 339 344 BADCIDR("1.2.3.4/240."); 340 345 341 BADCIDR("1.2.3.4/0"); /* prefix can't be zero */342 346 BADCIDR("1.2.3.4/33"); /* prefix is too big */ 347 BADCIDR("1.2.3.4/256"); /* prefix is too big */ 348 BADCIDR("1.2.3.4/257"); /* prefix is too big */ 343 349 BADCIDR("1.2.3.4/-1"); /* prefix is negative */ 344 350 BADCIDR("1.2.3.4/"); /* prefix is missing */ -
trunk/src/VBox/Runtime/testcase/tstRTNetIPv6.cpp
r91767 r91919 247 247 GOODCIDR("1:2:3:4::%if/64", 0x00010002, 0x00030004, 0, 0, 64); 248 248 249 #if 0 250 /** @todo doesn't support ::/0 yet */ 249 251 250 GOODCIDR("::/0", 0, 0, 0, 0, 0); 252 #endif 251 252 /* 253 * we allow zero prefix mostly for the sake of the above 254 * "everything"/default case, but allow it on everything - a 255 * conscientious caller should be doing more checks on the result 256 * anyway. 257 */ 258 GOODCIDR("1:2:3:4::/0", 0x00010002, 0x00030004, 0, 0, 0); 259 253 260 254 261 BADCIDR("1:2:3:4:: 64"); 255 262 BADCIDR("1:2:3:4::/64x"); 256 BADCIDR("1:2:3:4::/0");257 263 BADCIDR("1:2:3:4::/-1"); 258 264 BADCIDR("1:2:3:4::/129");
Note:
See TracChangeset
for help on using the changeset viewer.