Changeset 85148 in vbox for trunk/include
- Timestamp:
- Jul 9, 2020 10:28:21 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmnetinline.h
r85147 r85148 547 547 /* uh_ulen cannot exceed cbFrame - pGso->offHdr2 (offset of UDP header) */ 548 548 if ((unsigned)(pGso->offHdr2 + RT_BE2H_U16(((PCRTNETUDP)&pbFrame[pGso->offHdr2])->uh_ulen)) > cbFrame) 549 { 549 550 if (cbFrame > UINT16_MAX) 550 551 ((PRTNETUDP)&pbFrame[pGso->offHdr2])->uh_ulen = 0xFFFF; 551 552 else 552 553 ((PRTNETUDP)&pbFrame[pGso->offHdr2])->uh_ulen = RT_H2BE_U16((uint16_t)(cbFrame - pGso->offHdr2)); 554 } 553 555 Assert((unsigned)(pGso->offHdr2 + ((PCRTNETUDP)&pbFrame[pGso->offHdr2])->uh_ulen) <= cbFrame); 554 556 pdmNetGsoUpdateUdpHdrUfo(RTNetIPv4PseudoChecksum((PRTNETIPV4)&pbFrame[pGso->offHdr1]),
Note:
See TracChangeset
for help on using the changeset viewer.