Changeset 15d0046 in mainline for uspace/srv/net/inetsrv/pdu.c
- Timestamp:
- 2014-09-12T13:22:33Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/pdu.c
r8db09e4 r15d0046 106 106 { 107 107 /* Upper bound for fragment offset field */ 108 size_t fragoff_limit = 1 << (FF_FRAGOFF_h - FF_FRAGOFF_l );108 size_t fragoff_limit = 1 << (FF_FRAGOFF_h - FF_FRAGOFF_l + 1); 109 109 110 110 /* Verify that total size of datagram is within reasonable bounds */ 111 if ( offs +packet->size > FRAG_OFFS_UNIT * fragoff_limit)111 if (packet->size > FRAG_OFFS_UNIT * fragoff_limit) 112 112 return ELIMIT; 113 113
Note:
See TracChangeset
for help on using the changeset viewer.