Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inetcfg.c

    rf9b2cb4c r02a09ed  
    120120        assert(inetcfg_sess == NULL);
    121121       
    122         rc = loc_service_get_id(SERVICE_NAME_INET, &inet_svc,
     122        rc = loc_service_get_id(SERVICE_NAME_INETCFG, &inet_svc,
    123123            IPC_FLAG_BLOCKING);
    124124        if (rc != EOK)
    125125                return ENOENT;
    126126       
    127         inetcfg_sess = loc_service_connect(inet_svc, INTERFACE_INETCFG,
     127        inetcfg_sess = loc_service_connect(EXCHANGE_SERIALIZE, inet_svc,
    128128            IPC_FLAG_BLOCKING);
    129129        if (inetcfg_sess == NULL)
     
    267267}
    268268
    269 int inetcfg_link_add(sysarg_t link_id)
    270 {
    271         async_exch_t *exch = async_exchange_begin(inetcfg_sess);
    272 
    273         int rc = async_req_1_0(exch, INETCFG_LINK_ADD, link_id);
    274         async_exchange_end(exch);
    275 
    276         return rc;
    277 }
    278 
    279269int inetcfg_link_get(sysarg_t link_id, inet_link_info_t *linfo)
    280270{
     
    289279        aid_t req = async_send_1(exch, INETCFG_LINK_GET, link_id, &answer);
    290280        aid_t dreq = async_data_read(exch, name_buf, LOC_NAME_MAXLEN, &dreply);
    291         int rc = async_data_read_start(exch, &linfo->mac_addr, sizeof(addr48_t));
    292281        async_wait_for(dreq, &dretval);
    293282
    294283        async_exchange_end(exch);
    295284
    296         if (dretval != EOK || rc != EOK) {
     285        if (dretval != EOK) {
    297286                async_forget(req);
    298287                return dretval;
     
    313302
    314303        return EOK;
    315 }
    316 
    317 int inetcfg_link_remove(sysarg_t link_id)
    318 {
    319         async_exch_t *exch = async_exchange_begin(inetcfg_sess);
    320 
    321         int rc = async_req_1_0(exch, INETCFG_LINK_REMOVE, link_id);
    322         async_exchange_end(exch);
    323 
    324         return rc;
    325304}
    326305
Note: See TracChangeset for help on using the changeset viewer.