aboutsummaryrefslogtreecommitdiff
path: root/bootp.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-03 11:44:41 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-03 11:44:41 +0000
commit831e0fc92bf3c47ac605499f4bb30e530179cf7c (patch)
treeeb4945de139de6061d4d9c5078024a2561df1999 /bootp.c
parent815f0f692846677270388c585c6d48d1f23b92a5 (diff)
downloadslirp-831e0fc92bf3c47ac605499f4bb30e530179cf7c.zip
slirp-831e0fc92bf3c47ac605499f4bb30e530179cf7c.tar.gz
slirp-831e0fc92bf3c47ac605499f4bb30e530179cf7c.tar.bz2
hack for bootp support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1089 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'bootp.c')
-rw-r--r--bootp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootp.c b/bootp.c
index bb70911..fc1639a 100644
--- a/bootp.c
+++ b/bootp.c
@@ -138,6 +138,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;
/* XXX: this is a hack to get the client mac address */