Changeset e948fde in mainline for uspace/lib/c/generic


Ignore:
Timestamp:
2013-09-29T21:43:49Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a324d99
Parents:
f023251
Message:

dnsr_name2host should use ip_ver_t instead of AF.

Location:
uspace/lib/c/generic
Files:
2 edited

Legend:

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

    rf023251 re948fde  
    6767}
    6868
    69 int dnsr_name2host(const char *name, dnsr_hostinfo_t **rinfo, uint16_t af)
     69int dnsr_name2host(const char *name, dnsr_hostinfo_t **rinfo, ip_ver_t ver)
    7070{
    7171        dnsr_hostinfo_t *info = calloc(1, sizeof(dnsr_hostinfo_t));
     
    7676       
    7777        ipc_call_t answer;
    78         aid_t req = async_send_1(exch, DNSR_NAME2HOST, (sysarg_t) af,
     78        aid_t req = async_send_1(exch, DNSR_NAME2HOST, (sysarg_t) ver,
    7979            &answer);
    8080       
  • uspace/lib/c/generic/inet/addr.c

    rf023251 re948fde  
    250250}
    251251
     252ip_ver_t ipver_from_af(int af)
     253{
     254        switch (af) {
     255        case AF_NONE:
     256                return ip_any;
     257        case AF_INET:
     258                return ip_v4;
     259        case AF_INET6:
     260                return ip_v6;
     261        default:
     262                assert(false);
     263                return EINVAL;
     264        }
     265}
     266
    252267void inet_naddr_addr(const inet_naddr_t *naddr, inet_addr_t *addr)
    253268{
Note: See TracChangeset for help on using the changeset viewer.