summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorRob Gulewich <robert.gulewich@joyent.com>2011-08-11 01:17:11 +0000
committerRob Gulewich <robert.gulewich@joyent.com>2011-08-11 01:17:11 +0000
commitc3b74f8afd4e7fe1cfc0704b148a9e7a48ffaf36 (patch)
treeb36888d3c5ca30e70b876d3aa5e90b1bfe857027 /net.c
parent713c32b302bc536ff68d9f886f3cc43f5bd6b40d (diff)
downloadillumos-kvm-cmd-c3b74f8afd4e7fe1cfc0704b148a9e7a48ffaf36.tar.gz
[HVM-484] Add support for DHCP responses from Qemu in SmartOS version of Qemu
Diffstat (limited to 'net.c')
-rw-r--r--net.c37
1 files changed, 36 insertions, 1 deletions
diff --git a/net.c b/net.c
index 73ee212..b55cd44 100644
--- a/net.c
+++ b/net.c
@@ -1102,11 +1102,46 @@ static const struct {
.type = QEMU_OPT_STRING,
.help = "vnic interface name",
},
- {
+ {
.name = "macaddr",
.type = QEMU_OPT_STRING,
.help = "MAC address",
},
+ {
+ .name = "ip",
+ .type = QEMU_OPT_STRING,
+ .help = "DHCP IP address",
+ },
+ {
+ .name = "netmask",
+ .type = QEMU_OPT_STRING,
+ .help = "DHCP netmask",
+ },
+ {
+ .name = "gateway_ip",
+ .type = QEMU_OPT_STRING,
+ .help = "DHCP gateway IP address",
+ },
+ {
+ .name = "server_ip",
+ .type = QEMU_OPT_STRING,
+ .help = "IP address to return as the DHCP server",
+ },
+ {
+ .name = "dns_ip",
+ .type = QEMU_OPT_STRING,
+ .help = "DHCP DNS server IP address",
+ },
+ {
+ .name = "hostname",
+ .type = QEMU_OPT_STRING,
+ .help = "DHCP DNS server IP address",
+ },
+ {
+ .name = "lease_time",
+ .type = QEMU_OPT_NUMBER,
+ .help = "DHCP DNS server lease time",
+ },
{ /* end of list */ }
},
#endif