mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Add -bootp option for slirp, by Anthony Liguori.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2439 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5f189496c4
commit
47d5d01a45
4 changed files with 23 additions and 0 deletions
|
@ -38,6 +38,8 @@ typedef struct {
|
|||
|
||||
BOOTPClient bootp_clients[NB_ADDR];
|
||||
|
||||
const char *bootp_filename;
|
||||
|
||||
static const uint8_t rfc1533_cookie[] = { RFC1533_COOKIE };
|
||||
|
||||
#ifdef DEBUG
|
||||
|
@ -168,6 +170,10 @@ static void bootp_reply(struct bootp_t *bp)
|
|||
goto new_addr;
|
||||
}
|
||||
}
|
||||
|
||||
if (bootp_filename)
|
||||
snprintf(rbp->bp_file, sizeof(rbp->bp_file), "%s", bootp_filename);
|
||||
|
||||
dprintf("offered addr=%08x\n", ntohl(daddr.sin_addr.s_addr));
|
||||
|
||||
saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue