Changes in uspace/srv/net/inetsrv/pdu.c [fc6abbe:5a324d99] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/pdu.c
rfc6abbe r5a324d99 106 106 { 107 107 /* Upper bound for fragment offset field */ 108 size_t fragoff_limit = 1 << (FF_FRAGOFF_h - FF_FRAGOFF_l + 1);108 size_t fragoff_limit = 1 << (FF_FRAGOFF_h - FF_FRAGOFF_l); 109 109 110 110 /* Verify that total size of datagram is within reasonable bounds */ 111 if ( packet->size > FRAG_OFFS_UNIT * fragoff_limit)111 if (offs + packet->size > FRAG_OFFS_UNIT * fragoff_limit) 112 112 return ELIMIT; 113 113
Note:
See TracChangeset
for help on using the changeset viewer.