summaryrefslogtreecommitdiff
path: root/include/iprt/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/iprt/getopt.h')
-rw-r--r--include/iprt/getopt.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/include/iprt/getopt.h b/include/iprt/getopt.h
index bf976cef..042a6e5c 100644
--- a/include/iprt/getopt.h
+++ b/include/iprt/getopt.h
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 2007-2011 Oracle Corporation
+ * Copyright (C) 2007-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -69,12 +69,20 @@ RT_C_DECLS_BEGIN
/** The value must be a valid IPv4 address.
* (Not a name, but 4 values in the 0..255 range with dots separating them). */
#define RTGETOPT_REQ_IPV4ADDR 10
-#if 0
/** The value must be a valid IPv4 CIDR.
* As with RTGETOPT_REQ_IPV4ADDR, no name.
- * @todo Mix CIDR with types.h or/and net.h first and find a way to make the
- * mask optional like with ifconfig. See RTCidrStrToIPv4. */
+ */
#define RTGETOPT_REQ_IPV4CIDR 11
+#if 0
+/* take placers */
+/** The value must be a valid IPv6 addr
+ * @todo: Add types and parsing routines in (iprt/net.h)
+ */
+#define RTGETOPT_REQ_IPV6ADDR 12
+/** The value must be a valid IPv6 CIDR
+ * @todo: Add types and parsing routines in (iprt/net.h)
+ */
+#define RTGETOPT_REQ_IPV6CIDR 13
#endif
/** The value must be a valid ethernet MAC address. */
#define RTGETOPT_REQ_MACADDR 14
@@ -163,6 +171,12 @@ typedef union RTGETOPTUNION
#ifdef ___iprt_net_h
/** A RTGETOPT_REQ_IPV4ADDR option argument. */
RTNETADDRIPV4 IPv4Addr;
+ /** A RTGETOPT_REQ_IPV4CIDR option argument. */
+ struct
+ {
+ RTNETADDRIPV4 IPv4Network;
+ RTNETADDRIPV4 IPv4Netmask;
+ } CidrIPv4;
#endif
/** A RTGETOPT_REQ_MACADDR option argument. */
RTMAC MacAddr;
@@ -379,7 +393,7 @@ RTDECL(RTEXITCODE) RTGetOptPrintError(int ch, PCRTGETOPTUNION pValueUnion);
* This is useful for converting a response file or similar to an argument
* vector that can be used with RTGetOptInit().
*
- * This function aims at following the bourn shell string quoting rules.
+ * This function aims at following the bourne shell string quoting rules.
*
* @returns IPRT status code.
*