From 47d5d01a45d64d231fb856a9cdfecf5d567371e6 Mon Sep 17 00:00:00 2001 From: ths Date: Tue, 20 Feb 2007 00:05:08 +0000 Subject: Add -bootp option for slirp, by Anthony Liguori. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2439 c046a42c-6fe2-441c-8c8c-71466251a162 --- vl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 28d8eb34db..fd944e0488 100644 --- a/vl.c +++ b/vl.c @@ -6403,6 +6403,7 @@ void help(void) "\n" #ifdef CONFIG_SLIRP "-tftp prefix allow tftp access to files starting with prefix [-net user]\n" + "-bootp file advertise file in BOOTP replies\n" #ifndef _WIN32 "-smb dir allow SMB access to files in 'dir' [-net user]\n" #endif @@ -6491,6 +6492,7 @@ enum { QEMU_OPTION_net, QEMU_OPTION_tftp, + QEMU_OPTION_bootp, QEMU_OPTION_smb, QEMU_OPTION_redir, @@ -6567,6 +6569,7 @@ const QEMUOption qemu_options[] = { { "net", HAS_ARG, QEMU_OPTION_net}, #ifdef CONFIG_SLIRP { "tftp", HAS_ARG, QEMU_OPTION_tftp }, + { "bootp", HAS_ARG, QEMU_OPTION_bootp }, #ifndef _WIN32 { "smb", HAS_ARG, QEMU_OPTION_smb }, #endif @@ -7085,6 +7088,9 @@ int main(int argc, char **argv) case QEMU_OPTION_tftp: tftp_prefix = optarg; break; + case QEMU_OPTION_bootp: + bootp_filename = optarg; + break; #ifndef _WIN32 case QEMU_OPTION_smb: net_slirp_smb(optarg); -- cgit v1.2.1