Changeset 28074 in vbox
- Timestamp:
- Apr 7, 2010 11:23:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmnetinline.h
r28055 r28074 150 150 * Update an UDP header after carving out a segment 151 151 * 152 * @param u32Ps udoSumThe pseudo checksum.152 * @param u32PseudoSum The pseudo checksum. 153 153 * @param pbSegHdrs Pointer to the header bytes / frame start. 154 154 * @param offUdpHdr The offset into @a pbSegHdrs of the UDP header. … … 158 158 * @internal 159 159 */ 160 DECLINLINE(void) pdmNetGsoUpdateUdpHdr(uint32_t u32Ps udoSum, uint8_t *pbSegHdrs, uint8_t offUdpHdr,160 DECLINLINE(void) pdmNetGsoUpdateUdpHdr(uint32_t u32PseudoSum, uint8_t *pbSegHdrs, uint8_t offUdpHdr, 161 161 uint8_t const *pbPayload, uint32_t cbPayload, uint8_t cbHdrs) 162 162 { 163 163 PRTNETUDP pUdpHdr = (PRTNETUDP)&pbSegHdrs[offUdpHdr]; 164 164 pUdpHdr->uh_ulen = cbPayload + cbHdrs - offUdpHdr; 165 pUdpHdr->uh_sum = RTNetUDPChecksum(u32Ps udoSum, pUdpHdr);165 pUdpHdr->uh_sum = RTNetUDPChecksum(u32PseudoSum, pUdpHdr); 166 166 } 167 167 … … 170 170 * Update a TCP header after carving out a segment. 171 171 * 172 * @param u32Ps udoSumThe pseudo checksum.172 * @param u32PseudoSum The pseudo checksum. 173 173 * @param pbSegHdrs Pointer to the header bytes / frame start. 174 174 * @param offTcpHdr The offset into @a pbSegHdrs of the TCP header. … … 182 182 * @internal 183 183 */ 184 DECLINLINE(void) pdmNetGsoUpdateTcpHdr(uint32_t u32Ps udoSum, uint8_t *pbSegHdrs, uint8_t offTcpHdr,184 DECLINLINE(void) pdmNetGsoUpdateTcpHdr(uint32_t u32PseudoSum, uint8_t *pbSegHdrs, uint8_t offTcpHdr, 185 185 uint8_t const *pbPayload, uint32_t cbPayload, uint32_t offPayload, uint8_t cbHdrs, bool fLastSeg) 186 186 { … … 189 189 if (!fLastSeg) 190 190 pTcpHdr->th_flags &= ~(RTNETTCP_F_FIN | RTNETTCP_F_PSH); 191 pTcpHdr->th_sum = RTNetTCPChecksum(u32Ps udoSum, pTcpHdr, pbPayload, cbPayload);191 pTcpHdr->th_sum = RTNetTCPChecksum(u32PseudoSum, pTcpHdr, pbPayload, cbPayload); 192 192 } 193 193
Note:
See TracChangeset
for help on using the changeset viewer.