Ignore:
File:
1 edited

Legend:

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

    rf5f79cd r1d24ad3  
    7979       
    8080        ipc_call_t answer;
    81         aid_t req = async_send_1(exch, INETPING6_SEND, sdu->seq_no, &answer);
    82        
    83         int rc = async_data_write_start(exch, &sdu->src, sizeof(addr128_t));
    84         if (rc != EOK) {
    85                 async_exchange_end(exch);
     81        aid_t req = async_send_3(exch, INETPING6_SEND, (sysarg_t) sdu->src,
     82            (sysarg_t) sdu->dest, sdu->seq_no, &answer);
     83        sysarg_t retval = async_data_write_start(exch, sdu->data, sdu->size);
     84       
     85        async_exchange_end(exch);
     86       
     87        if (retval != EOK) {
    8688                async_forget(req);
    87                 return rc;
    88         }
    89        
    90         rc = async_data_write_start(exch, &sdu->dest, sizeof(addr128_t));
    91         if (rc != EOK) {
    92                 async_exchange_end(exch);
    93                 async_forget(req);
    94                 return rc;
    95         }
    96        
    97         rc = async_data_write_start(exch, sdu->data, sdu->size);
    98        
    99         async_exchange_end(exch);
    100        
    101         if (rc != EOK) {
    102                 async_forget(req);
    103                 return rc;
    104         }
    105        
    106         sysarg_t retval;
     89                return retval;
     90        }
     91       
    10792        async_wait_for(req, &retval);
    108        
    109         return (int) retval;
     93        return retval;
    11094}
    11195
     
    158142        }
    159143       
    160         if (size != sizeof(addr128_t)) {
     144        if (size != sizeof(inet_addr_t)) {
    161145                async_answer_0(callid, EINVAL);
    162146                async_answer_0(iid, EINVAL);
     
    177161        }
    178162       
    179         if (size != sizeof(addr128_t)) {
     163        if (size != sizeof(inet_addr_t)) {
    180164                async_answer_0(callid, EINVAL);
    181165                async_answer_0(iid, EINVAL);
Note: See TracChangeset for help on using the changeset viewer.