diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-10-03 11:44:41 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-10-03 11:44:41 +0000 |
commit | 487be8a1a76f5a47ebf1ecbdd8b6244432edd9d3 (patch) | |
tree | d04328fb954bd0426b60b2cf43c22aae17d01e98 /slirp | |
parent | 2518bd0dc210cfd167e3378c1bd9cfa5a89ebca2 (diff) | |
download | hqemu-487be8a1a76f5a47ebf1ecbdd8b6244432edd9d3.zip hqemu-487be8a1a76f5a47ebf1ecbdd8b6244432edd9d3.tar.gz |
hack for bootp support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1089 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp')
-rw-r--r-- | slirp/bootp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slirp/bootp.c b/slirp/bootp.c index 3924c10..56caf70 100644 --- a/slirp/bootp.c +++ b/slirp/bootp.c @@ -136,6 +136,9 @@ static void bootp_reply(struct bootp_t *bp) dhcp_decode(bp->bp_vend, DHCP_OPT_LEN, &dhcp_msg_type); dprintf("bootp packet op=%d msgtype=%d\n", bp->bp_op, dhcp_msg_type); + if (dhcp_msg_type == 0) + dhcp_msg_type = DHCPREQUEST; /* Force reply for old BOOTP clients */ + if (dhcp_msg_type != DHCPDISCOVER && dhcp_msg_type != DHCPREQUEST) return; |