Changes in uspace/lib/packet/generic/packet_server.c [774e6d1a:01b87dc5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/packet/generic/packet_server.c
r774e6d1a r01b87dc5 322 322 int 323 323 packet_server_message(ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, 324 size_t *answer_count)324 int *answer_count) 325 325 { 326 326 packet_t *packet; … … 333 333 case NET_PACKET_CREATE_1: 334 334 packet = packet_get_local(DEFAULT_ADDR_LEN, DEFAULT_PREFIX, 335 IPC_GET_CONTENT( *call), DEFAULT_SUFFIX);335 IPC_GET_CONTENT(call), DEFAULT_SUFFIX); 336 336 if (!packet) 337 337 return ENOMEM; … … 343 343 case NET_PACKET_CREATE_4: 344 344 packet = packet_get_local( 345 ((DEFAULT_ADDR_LEN < IPC_GET_ADDR_LEN( *call)) ?346 IPC_GET_ADDR_LEN( *call) : DEFAULT_ADDR_LEN),347 DEFAULT_PREFIX + IPC_GET_PREFIX( *call),348 IPC_GET_CONTENT( *call),349 DEFAULT_SUFFIX + IPC_GET_SUFFIX( *call));345 ((DEFAULT_ADDR_LEN < IPC_GET_ADDR_LEN(call)) ? 346 IPC_GET_ADDR_LEN(call) : DEFAULT_ADDR_LEN), 347 DEFAULT_PREFIX + IPC_GET_PREFIX(call), 348 IPC_GET_CONTENT(call), 349 DEFAULT_SUFFIX + IPC_GET_SUFFIX(call)); 350 350 if (!packet) 351 351 return ENOMEM; … … 356 356 357 357 case NET_PACKET_GET: 358 packet = pm_find(IPC_GET_ID( *call));358 packet = pm_find(IPC_GET_ID(call)); 359 359 if (!packet_is_valid(packet)) 360 360 return ENOENT; … … 362 362 363 363 case NET_PACKET_GET_SIZE: 364 packet = pm_find(IPC_GET_ID( *call));364 packet = pm_find(IPC_GET_ID(call)); 365 365 if (!packet_is_valid(packet)) 366 366 return ENOENT; … … 370 370 371 371 case NET_PACKET_RELEASE: 372 return packet_release_wrapper(IPC_GET_ID( *call));372 return packet_release_wrapper(IPC_GET_ID(call)); 373 373 } 374 374
Note:
See TracChangeset
for help on using the changeset viewer.