aboutsummaryrefslogtreecommitdiff
path: root/slirp/bootp.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/bootp.c')
-rw-r--r--slirp/bootp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/slirp/bootp.c b/slirp/bootp.c
index 755072db83..30cb05e956 100644
--- a/slirp/bootp.c
+++ b/slirp/bootp.c
@@ -225,7 +225,8 @@ static void bootp_reply(struct bootp_t *bp)
}
*q++ = RFC1533_END;
- m->m_len = sizeof(struct bootp_t);
+ m->m_len = sizeof(struct bootp_t) -
+ sizeof(struct ip) - sizeof(struct udphdr);
udp_output2(NULL, m, &saddr, &daddr, IPTOS_LOWDELAY);
}