Changeset ab87db5 in mainline for uspace/srv/net/inetsrv


Ignore:
Timestamp:
2019-02-23T17:16:01Z (7 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c193d83, ca0e838
Parents:
bc417660 (diff), 95a47b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
git-committer:
GitHub <noreply@…> (2019-02-23 17:16:01)
Message:

Merge pull request #157

Turn some function-like macros into functions

Location:
uspace/srv/net/inetsrv
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetcfg.c

    rbc417660 rab87db5  
    257257        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_create_static_srv()");
    258258
    259         sysarg_t link_id = IPC_GET_ARG1(*icall);
     259        sysarg_t link_id = ipc_get_arg1(icall);
    260260
    261261        ipc_call_t call;
     
    302302        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_delete_srv()");
    303303
    304         addr_id = IPC_GET_ARG1(*call);
     304        addr_id = ipc_get_arg1(call);
    305305
    306306        rc = inetcfg_addr_delete(addr_id);
     
    312312        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_get_srv()");
    313313
    314         sysarg_t addr_id = IPC_GET_ARG1(*icall);
     314        sysarg_t addr_id = ipc_get_arg1(icall);
    315315
    316316        inet_addr_info_t ainfo;
     
    375375        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_get_id_srv()");
    376376
    377         link_id = IPC_GET_ARG1(*call);
     377        link_id = ipc_get_arg1(call);
    378378
    379379        rc = async_data_write_accept((void **) &name, true, 0, LOC_NAME_MAXLEN,
     
    499499        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_link_add_srv()");
    500500
    501         link_id = IPC_GET_ARG1(*call);
     501        link_id = ipc_get_arg1(call);
    502502
    503503        rc = inetcfg_link_add(link_id);
     
    516516        errno_t rc;
    517517
    518         link_id = IPC_GET_ARG1(*call);
     518        link_id = ipc_get_arg1(call);
    519519        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_link_get_srv()");
    520520
     
    566566        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_link_remove_srv()");
    567567
    568         link_id = IPC_GET_ARG1(*call);
     568        link_id = ipc_get_arg1(call);
    569569
    570570        rc = inetcfg_link_remove(link_id);
     
    639639        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_sroute_delete_srv()");
    640640
    641         sroute_id = IPC_GET_ARG1(*call);
     641        sroute_id = ipc_get_arg1(call);
    642642
    643643        rc = inetcfg_sroute_delete(sroute_id);
     
    649649        log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_sroute_get_srv()");
    650650
    651         sysarg_t sroute_id = IPC_GET_ARG1(*icall);
     651        sysarg_t sroute_id = ipc_get_arg1(icall);
    652652
    653653        inet_sroute_info_t srinfo;
     
    747747                ipc_call_t call;
    748748                async_get_call(&call);
    749                 sysarg_t method = IPC_GET_IMETHOD(call);
     749                sysarg_t method = ipc_get_imethod(&call);
    750750
    751751                log_msg(LOG_DEFAULT, LVL_DEBUG, "method %d", (int)method);
  • uspace/srv/net/inetsrv/inetping.c

    rbc417660 rab87db5  
    143143        errno_t rc;
    144144
    145         sdu.seq_no = IPC_GET_ARG1(*icall);
     145        sdu.seq_no = ipc_get_arg1(icall);
    146146
    147147        ipc_call_t call;
     
    294294                ipc_call_t call;
    295295                async_get_call(&call);
    296                 sysarg_t method = IPC_GET_IMETHOD(call);
     296                sysarg_t method = ipc_get_imethod(&call);
    297297
    298298                if (!method) {
  • uspace/srv/net/inetsrv/inetsrv.c

    rbc417660 rab87db5  
    233233        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srcaddr_srv()");
    234234
    235         uint8_t tos = IPC_GET_ARG1(*icall);
     235        uint8_t tos = ipc_get_arg1(icall);
    236236
    237237        ipc_call_t call;
     
    291291        inet_dgram_t dgram;
    292292
    293         dgram.iplink = IPC_GET_ARG1(*icall);
    294         dgram.tos = IPC_GET_ARG2(*icall);
    295 
    296         uint8_t ttl = IPC_GET_ARG3(*icall);
    297         int df = IPC_GET_ARG4(*icall);
     293        dgram.iplink = ipc_get_arg1(icall);
     294        dgram.tos = ipc_get_arg2(icall);
     295
     296        uint8_t ttl = ipc_get_arg3(icall);
     297        int df = ipc_get_arg4(icall);
    298298
    299299        ipc_call_t call;
     
    352352        sysarg_t proto;
    353353
    354         proto = IPC_GET_ARG1(*call);
     354        proto = ipc_get_arg1(call);
    355355        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_set_proto_srv(%lu)", (unsigned long) proto);
    356356
     
    397397                ipc_call_t call;
    398398                async_get_call(&call);
    399                 sysarg_t method = IPC_GET_IMETHOD(call);
     399                sysarg_t method = ipc_get_imethod(&call);
    400400
    401401                if (!method) {
Note: See TracChangeset for help on using the changeset viewer.