From c3b74f8afd4e7fe1cfc0704b148a9e7a48ffaf36 Mon Sep 17 00:00:00 2001 From: Rob Gulewich Date: Thu, 11 Aug 2011 01:17:11 +0000 Subject: [HVM-484] Add support for DHCP responses from Qemu in SmartOS version of Qemu --- net.c | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'net.c') 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 -- cgit v1.2.3