Changeset 91917 in vbox
- Timestamp:
- Oct 21, 2021 12:34:53 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp
r91503 r91917 293 293 * /32 is a single address, not a network, /31 is the degenerate 294 294 * point-to-point case, so reject these. Larger values and 295 * n on-positive values are already treated as errors by the295 * negative values are already treated as errors by the 296 296 * conversion. 297 297 */ … … 299 299 return setError(E_FAIL, tr("%s network is too small"), aIPv4NetworkCidr.c_str()); 300 300 301 if (iPrefix == 0) 302 return setError(E_FAIL, tr("%s specifies zero prefix"), aIPv4NetworkCidr.c_str()); 303 301 304 rc = RTNetPrefixToMaskIPv4(iPrefix, &Mask); 302 305 AssertRCReturn(rc, setError(E_FAIL, … … 308 311 tr("%s: the specified address is longer than the specified prefix"), 309 312 aIPv4NetworkCidr.c_str()); 313 314 /** @todo r=uwe Check the address is unicast, not a loopback, etc. */ 310 315 311 316 /* normalized CIDR notation */
Note:
See TracChangeset
for help on using the changeset viewer.

