Changes in uspace/srv/net/inetsrv/inetsrv.c [8d48c7e:1c635d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
r8d48c7e r1c635d6 469 469 { 470 470 async_exch_t *exch = async_exchange_begin(client->sess); 471 471 472 472 ipc_call_t answer; 473 474 log_msg(LOG_DEFAULT, LVL_NOTE, "inet_ev_recv: iplink=%zu", 475 dgram->iplink); 476 477 aid_t req = async_send_2(exch, INET_EV_RECV, dgram->tos, 478 dgram->iplink, &answer); 479 473 aid_t req = async_send_1(exch, INET_EV_RECV, dgram->tos, &answer); 474 480 475 int rc = async_data_write_start(exch, &dgram->src, sizeof(inet_addr_t)); 481 476 if (rc != EOK) { … … 484 479 return rc; 485 480 } 486 481 487 482 rc = async_data_write_start(exch, &dgram->dest, sizeof(inet_addr_t)); 488 483 if (rc != EOK) { … … 491 486 return rc; 492 487 } 493 488 494 489 rc = async_data_write_start(exch, dgram->data, dgram->size); 495 490 496 491 async_exchange_end(exch); 497 492 498 493 if (rc != EOK) { 499 494 async_forget(req); 500 495 return rc; 501 496 } 502 497 503 498 sysarg_t retval; 504 499 async_wait_for(req, &retval); 505 500 506 501 return (int) retval; 507 502 } … … 516 511 if (proto == IP_PROTO_ICMP) 517 512 return icmp_recv(dgram); 518 513 519 514 if (proto == IP_PROTO_ICMPV6) 520 515 return icmpv6_recv(dgram); … … 545 540 if (packet->offs == 0 && !packet->mf) { 546 541 /* It is complete deliver it immediately */ 547 dgram.iplink = packet->link_id;548 542 dgram.src = packet->src; 549 543 dgram.dest = packet->dest;
Note:
See TracChangeset
for help on using the changeset viewer.