Changeset 53367 in vbox
- Timestamp:
- Nov 21, 2014 4:09:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/pxping_win.c
r53366 r53367 192 192 } 193 193 194 bufsize = sizeof(ICMP_ECHO_REPLY) + p->tot_len; 194 bufsize = sizeof(ICMP_ECHO_REPLY); 195 if (p->tot_len < sizeof(IO_STATUS_BLOCK) + sizeof(struct icmp_echo_hdr)) 196 bufsize += sizeof(IO_STATUS_BLOCK) + sizeof(struct icmp_echo_hdr); 197 else 198 bufsize += p->tot_len; 199 bufsize += 16; /* whatever that is; empirically at least XP needs it */ 200 195 201 pong = (struct pong4 *)malloc(RT_OFFSETOF(struct pong4, buf) + bufsize); 196 202 if (RT_UNLIKELY(pong == NULL)) {
Note:
See TracChangeset
for help on using the changeset viewer.