Changeset 73097 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Jul 12, 2018 9:06:33 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123672
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.c
r70842 r73097 863 863 size_t vlen; 864 864 865 if (mlen < RT_ OFFSETOF(struct bootp_t, bp_vend) + sizeof(rfc1533_cookie))865 if (mlen < RT_UOFFSETOF(struct bootp_t, bp_vend) + sizeof(rfc1533_cookie)) 866 866 { 867 867 LogRelMax(50, ("NAT: ignoring invalid BOOTP request (mlen %u too short)\n", mlen)); … … 893 893 } 894 894 895 vlen = mlen - RT_ OFFSETOF(struct bootp_t, bp_vend);895 vlen = mlen - RT_UOFFSETOF(struct bootp_t, bp_vend); 896 896 dhcp_decode(pData, bp, vlen); 897 897 } -
trunk/src/VBox/Devices/Network/slirp/ip_icmpwin.c
r69500 r73097 155 155 bufsize += 16; /* whatever that is; empirically at least XP needs it */ 156 156 157 pongsize = RT_ OFFSETOF(struct pong, buf) + bufsize;157 pongsize = RT_UOFFSETOF(struct pong, buf) + bufsize; 158 158 if (pData->cbIcmpPending + pongsize > 1024 * 1024) 159 159 return; … … 327 327 size_t sz; 328 328 329 sz = RT_ OFFSETOF(struct pong, buf) + pong->bufsize;329 sz = RT_UOFFSETOF(struct pong, buf) + pong->bufsize; 330 330 Assert(pData->cbIcmpPending >= sz); 331 331 pData->cbIcmpPending -= sz; -
trunk/src/VBox/Devices/Network/slirp/tftp.c
r69500 r73097 266 266 267 267 pszTftpRRQRaw = (char *)&pcTftpIpHeader->Core; 268 cbTftpRRQRaw = RT_H2N_U16(pcTftpIpHeader->UdpHdr.uh_ulen) + sizeof(struct ip) - RT_ OFFSETOF(TFTPIPHDR, Core);268 cbTftpRRQRaw = RT_H2N_U16(pcTftpIpHeader->UdpHdr.uh_ulen) + sizeof(struct ip) - RT_UOFFSETOF(TFTPIPHDR, Core); 269 269 while (cbTftpRRQRaw) 270 270 {
Note:
See TracChangeset
for help on using the changeset viewer.