Commit 487be8a1a76f5a47ebf1ecbdd8b6244432edd9d3
1 parent
2518bd0d
hack for bootp support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1089 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
0 deletions
slirp/bootp.c
... | ... | @@ -136,6 +136,9 @@ static void bootp_reply(struct bootp_t *bp) |
136 | 136 | dhcp_decode(bp->bp_vend, DHCP_OPT_LEN, &dhcp_msg_type); |
137 | 137 | dprintf("bootp packet op=%d msgtype=%d\n", bp->bp_op, dhcp_msg_type); |
138 | 138 | |
139 | + if (dhcp_msg_type == 0) | |
140 | + dhcp_msg_type = DHCPREQUEST; /* Force reply for old BOOTP clients */ | |
141 | + | |
139 | 142 | if (dhcp_msg_type != DHCPDISCOVER && |
140 | 143 | dhcp_msg_type != DHCPREQUEST) |
141 | 144 | return; | ... | ... |