Changeset 43464 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Sep 28, 2012 2:07:28 PM (12 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp/bsd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bsd/amd64/in_cksum.c
r28171 r43464 111 111 if ((offset = 3 & (long) lw) != 0) { 112 112 const u_int32_t *masks = in_masks + (offset << 2); 113 lw = (u_int32_t *) ((( long) lw) - offset);113 lw = (u_int32_t *) (((RTHCUINTPTR) lw) - offset); 114 114 sum = *lw++ & masks[len >= 3 ? 3 : len]; 115 115 len -= 4 - offset; -
trunk/src/VBox/Devices/Network/slirp/bsd/i386/in_cksum.c
r27869 r43464 119 119 if ((offset = 3 & (long) lw) != 0) { 120 120 const u_int32_t *masks = in_masks + (offset << 2); 121 lw = (u_int32_t *) ((( long) lw) - offset);121 lw = (u_int32_t *) (((RTHCUINTPTR) lw) - offset); 122 122 sum = *lw++ & masks[len >= 3 ? 3 : len]; 123 123 len -= 4 - offset;
Note:
See TracChangeset
for help on using the changeset viewer.