Changeset 45116 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Mar 21, 2013 8:08:21 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r45115 r45116 28 28 * Header Files * 29 29 *******************************************************************************/ 30 #include <iprt/cidr.h> 30 31 #include <iprt/net.h> /* must come before getopt.h */ 31 32 #include <iprt/getopt.h> … … 410 411 break; 411 412 } 412 #if 0 /** @todo CIDR */ 413 #endif 413 414 case RTGETOPT_REQ_IPV4CIDR: 415 { 416 RTNETADDRIPV4 network; 417 RTNETADDRIPV4 netmask; 418 if (RT_FAILURE(RTCidrStrToIPv4(pszValue, &network, &netmask))) 419 return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; 420 pValueUnion->CidrIPv4.IPv4Network.u = network.u; 421 pValueUnion->CidrIPv4.IPv4Netmask.u = netmask.u; 422 break; 423 } 414 424 415 425 case RTGETOPT_REQ_MACADDR:
Note:
See TracChangeset
for help on using the changeset viewer.