Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/sock.c

    rb1bd89ea r0d520a2  
    4343#include <ipc/services.h>
    4444#include <ipc/socket.h>
     45#include <net/modules.h>
    4546#include <net/socket.h>
    4647#include <ns.h>
     
    133134        assert(sock_core != NULL);
    134135        sock->sock_core = sock_core;
    135        
     136
     137
     138        refresh_answer(&answer, NULL);
    136139        SOCKET_SET_SOCKET_ID(answer, sock_id);
    137140
    138141        SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE);
    139142        SOCKET_SET_HEADER_SIZE(answer, sizeof(udp_header_t));
    140         async_answer_3(callid, EOK, IPC_GET_ARG1(answer),
    141             IPC_GET_ARG2(answer), IPC_GET_ARG3(answer));
     143        answer_call(callid, EOK, &answer, 3);
    142144}
    143145
     
    367369                }
    368370        }
    369        
    370         IPC_SET_ARG1(answer, 0);
     371
     372        refresh_answer(&answer, NULL);
    371373        SOCKET_SET_DATA_FRAGMENT_SIZE(answer, FRAGMENT_SIZE);
    372         async_answer_2(callid, EOK, IPC_GET_ARG1(answer),
    373             IPC_GET_ARG2(answer));
     374        answer_call(callid, EOK, &answer, 2);
    374375        fibril_mutex_unlock(&socket->lock);
    375        
    376376out:
    377377        if (addr != NULL)
     
    486486
    487487        log_msg(LVL_DEBUG, "read_data_length <- %zu", length);
    488         IPC_SET_ARG2(answer, 0);
    489488        SOCKET_SET_READ_DATA_LENGTH(answer, length);
    490489        SOCKET_SET_ADDRESS_LENGTH(answer, sizeof(addr));
    491         async_answer_3(callid, EOK, IPC_GET_ARG1(answer),
    492             IPC_GET_ARG2(answer), IPC_GET_ARG3(answer));
    493        
     490        answer_call(callid, EOK, &answer, 3);
     491
    494492        /* Push one fragment notification to client's queue */
    495493        udp_sock_notify_data(sock_core);
Note: See TracChangeset for help on using the changeset viewer.