Changes in uspace/srv/net/udp/sock.c [0d520a2:b1bd89ea] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/sock.c
r0d520a2 rb1bd89ea 43 43 #include <ipc/services.h> 44 44 #include <ipc/socket.h> 45 #include <net/modules.h>46 45 #include <net/socket.h> 47 46 #include <ns.h> … … 134 133 assert(sock_core != NULL); 135 134 sock->sock_core = sock_core; 136 137 138 refresh_answer(&answer, NULL); 135 139 136 SOCKET_SET_SOCKET_ID(answer, sock_id); 140 137 141 138 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 142 139 SOCKET_SET_HEADER_SIZE(answer, sizeof(udp_header_t)); 143 answer_call(callid, EOK, &answer, 3); 140 async_answer_3(callid, EOK, IPC_GET_ARG1(answer), 141 IPC_GET_ARG2(answer), IPC_GET_ARG3(answer)); 144 142 } 145 143 … … 369 367 } 370 368 } 371 372 refresh_answer(&answer, NULL);369 370 IPC_SET_ARG1(answer, 0); 373 371 SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE); 374 answer_call(callid, EOK, &answer, 2); 372 async_answer_2(callid, EOK, IPC_GET_ARG1(answer), 373 IPC_GET_ARG2(answer)); 375 374 fibril_mutex_unlock(&socket->lock); 375 376 376 out: 377 377 if (addr != NULL) … … 486 486 487 487 log_msg(LVL_DEBUG, "read_data_length <- %zu", length); 488 IPC_SET_ARG2(answer, 0); 488 489 SOCKET_SET_READ_DATA_LENGTH(answer, length); 489 490 SOCKET_SET_ADDRESS_LENGTH(answer, sizeof(addr)); 490 answer_call(callid, EOK, &answer, 3); 491 491 async_answer_3(callid, EOK, IPC_GET_ARG1(answer), 492 IPC_GET_ARG2(answer), IPC_GET_ARG3(answer)); 493 492 494 /* Push one fragment notification to client's queue */ 493 495 udp_sock_notify_data(sock_core);
Note:
See TracChangeset
for help on using the changeset viewer.