commit | 44bbf73f921100140d905e96ccebc2af51b2ac7a | [log] [tgz] |
---|---|---|
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | Fri Jun 04 15:30:48 2004 +0000 |
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | Fri Jun 04 15:30:48 2004 +0000 |
tree | 538d31814fd5b80f2dd73a16ec319c60c49060aa | |
parent | 00ffa62a91a0b5af20f69819f0d30b2cd08cda99 [diff] [blame] |
dhcp packet size fix (aka pump fix) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@888 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/slirp/bootp.c b/slirp/bootp.c index 755072d..30cb05e 100644 --- a/slirp/bootp.c +++ b/slirp/bootp.c
@@ -225,7 +225,8 @@ } *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); }