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

Changeset daecfed3 in mainline


Ignore:
Timestamp:
2010-01-04T17:50:33Z (12 years ago)
Author:
Lukas Mejdrech <lukas@…>
Branches:
lfn, master
Children:
c92a5753
Parents:
9d28b9c
Message:
  • packet server allocates more free space than requested for possible error notification
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/structures/packet/packet_server.c

    r9d28b9c rdaecfed3  
    194194                        return EOK;
    195195                case NET_PACKET_CREATE_4:
    196                         packet = packet_get( IPC_GET_ADDR_LEN( call ), IPC_GET_PREFIX( call ), IPC_GET_CONTENT( call ), IPC_GET_SUFFIX( call ));
     196                        packet = packet_get((( DEFAULT_ADDR_LEN < IPC_GET_ADDR_LEN( call )) ? IPC_GET_ADDR_LEN( call ) : DEFAULT_ADDR_LEN ), DEFAULT_PREFIX + IPC_GET_PREFIX( call ), IPC_GET_CONTENT( call ), DEFAULT_SUFFIX + IPC_GET_SUFFIX( call ));
    197197                        if( ! packet ) return ENOMEM;
    198198                        * answer_count = 2;
Note: See TracChangeset for help on using the changeset viewer.