Commit 76da4cca authored by Marc-André Lureau's avatar Marc-André Lureau 🎺
Browse files

Merge branch 'fix-48' into 'master'

Fix "DHCP broken in libslirp v4.6.0"

Closes #48

See merge request !95
parents 6ef66db7 c9f314f6
Pipeline #342180 passed with stage
in 2 minutes and 49 seconds
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment