Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7fda2e0 in mainline


Ignore:
Timestamp:
2012-04-16T07:11:01Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
69a93df7
Parents:
7f95c904
Message:

Fix xfer_size computation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/inet/pdu.c

    r7f95c904 r7fda2e0  
    141141        /* Amount of space in the PDU available for payload */
    142142        spc_avail = mtu - hdr_size;
     143        spc_avail -= (spc_avail % FRAG_OFFS_UNIT);
    143144
    144145        /* Amount of data (payload) to transfer */
    145146        xfer_size = min(packet->size - offs, spc_avail);
    146         xfer_size -= (xfer_size % FRAG_OFFS_UNIT);
    147147
    148148        /* Total PDU size */
Note: See TracChangeset for help on using the changeset viewer.