mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
slirp: Implement RFC2132 TFTP server name
This new usernet option can be used to add data for option 66 (tftp server name) in the BOOTP reply, which is useful in PXE based automatic OS install such as OpenBSD. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
6e157a0339
commit
0fca92b907
8 changed files with 38 additions and 4 deletions
|
@ -1823,7 +1823,7 @@ DEF("netdev", HAS_ARG, QEMU_OPTION_netdev,
|
|||
" [,ipv6[=on|off]][,ipv6-net=addr[/int]][,ipv6-host=addr]\n"
|
||||
" [,restrict=on|off][,hostname=host][,dhcpstart=addr]\n"
|
||||
" [,dns=addr][,ipv6-dns=addr][,dnssearch=domain][,domainname=domain]\n"
|
||||
" [,tftp=dir][,bootfile=f][,hostfwd=rule][,guestfwd=rule]"
|
||||
" [,tftp=dir][,tftp-server-name=name][,bootfile=f][,hostfwd=rule][,guestfwd=rule]"
|
||||
#ifndef _WIN32
|
||||
"[,smb=dir[,smbserver=addr]]\n"
|
||||
#endif
|
||||
|
@ -2060,6 +2060,11 @@ server. The files in @var{dir} will be exposed as the root of a TFTP server.
|
|||
The TFTP client on the guest must be configured in binary mode (use the command
|
||||
@code{bin} of the Unix TFTP client).
|
||||
|
||||
@item tftp-server-name=@var{name}
|
||||
In BOOTP reply, broadcast @var{name} as the "TFTP server name" (RFC2132 option
|
||||
66). This can be used to advise the guest to load boot files or configurations
|
||||
from a different server than the host address.
|
||||
|
||||
@item bootfile=@var{file}
|
||||
When using the user mode network stack, broadcast @var{file} as the BOOTP
|
||||
filename. In conjunction with @option{tftp}, this can be used to network boot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue