Skip to content
Snippets Groups Projects
Unverified Commit c9f314f6 authored by Akihiro Suda's avatar Akihiro Suda
Browse files

Fix "DHCP broken in libslirp v4.6.0"


Fix issue 48

Signed-off-by: default avatarAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
parent 6ef66db7
No related branches found
No related tags found
Loading
......@@ -359,7 +359,9 @@ static void bootp_reply(Slirp *slirp,
daddr.sin_addr.s_addr = 0xffffffffu;
m->m_len = sizeof(struct bootp_t) - sizeof(struct ip) - sizeof(struct udphdr);
assert ((q - rbp->bp_vend + 1) <= DHCP_OPT_LEN);
m->m_len = sizeof(struct bootp_t) + (q - rbp->bp_vend + 1) - sizeof(struct ip) - sizeof(struct udphdr);
udp_output(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment