Changeset 99ea91b2 in mainline
- Timestamp:
- 2015-04-20T21:11:29Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 779541b
- Parents:
- fab2746
- Location:
- uspace/srv/net/udp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/assoc.c
rfab2746 r99ea91b2 365 365 log_msg(LOG_DEFAULT, LVL_NOTE, "call assoc->cb->recv_msg"); 366 366 assoc->cb->recv_msg(assoc->cb_arg, rsp, msg); 367 udp_assoc_delref(assoc); 367 368 } 368 369 -
uspace/srv/net/udp/msg.c
rfab2746 r99ea91b2 50 50 void udp_msg_delete(udp_msg_t *msg) 51 51 { 52 free(msg->data); 52 53 free(msg); 53 54 } -
uspace/srv/net/udp/pdu.c
rfab2746 r99ea91b2 196 196 return ENOMEM; 197 197 198 nmsg->data = text;199 198 nmsg->data_size = length - sizeof(udp_header_t); 199 nmsg->data = malloc(nmsg->data_size); 200 if (nmsg->data == NULL) 201 return ENOMEM; 202 203 memcpy(nmsg->data, text, nmsg->data_size); 200 204 201 205 *msg = nmsg; -
uspace/srv/net/udp/service.c
rfab2746 r99ea91b2 65 65 udp_crcv_queue_entry_t *rqe; 66 66 67 log_msg(LOG_DEFAULT, LVL_ NOTE, "udp_cassoc_queue_msg(%p, %p, %p)",67 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_cassoc_queue_msg(%p, %p, %p)", 68 68 cassoc, sp, msg); 69 69 … … 86 86 } 87 87 88 89 static int udp_ev_data(udp_client_t *client) 88 static void udp_ev_data(udp_client_t *client) 90 89 { 91 90 async_exch_t *exch; 92 91 93 log_msg(LOG_DEFAULT, LVL_ NOTE, "udp_ev_data()");92 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_ev_data()"); 94 93 95 94 exch = async_exchange_begin(client->sess); 96 sysarg_t rc = async_req_0_0(exch, UDP_EV_DATA);95 aid_t req = async_send_0(exch, UDP_EV_DATA, NULL); 97 96 async_exchange_end(exch); 98 97 99 return rc;98 async_forget(req); 100 99 } 101 100 … … 174 173 (void) inet_addr_format(&epp->remote.addr, &ra); 175 174 176 log_msg(LOG_DEFAULT, LVL_ NOTE, "udp_assoc_create_impl la=%s ra=%s",175 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_create_impl la=%s ra=%s", 177 176 la, ra); 178 177 … … 488 487 enext = udp_rmsg_get_next(client); 489 488 if (enext == NULL) { 489 log_msg(LOG_DEFAULT, LVL_DEBUG, "usg_rmsg_discard_srv: enext==NULL"); 490 490 async_answer_0(iid, ENOENT); 491 491 return; … … 494 494 list_remove(&enext->link); 495 495 udp_msg_delete(enext->msg); 496 free(enext); 496 497 async_answer_0(iid, EOK); 497 498 } … … 510 511 511 512 while (true) { 512 log_msg(LOG_DEFAULT, LVL_ NOTE, "udp_client_conn: wait req");513 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_client_conn: wait req"); 513 514 ipc_call_t call; 514 515 ipc_callid_t callid = async_get_call(&call); 515 516 sysarg_t method = IPC_GET_IMETHOD(call); 516 517 517 log_msg(LOG_DEFAULT, LVL_ NOTE, "udp_client_conn: method=%d",518 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_client_conn: method=%d", 518 519 (int)method); 519 520 if (!method) {
Note:
See TracChangeset
for help on using the changeset viewer.