Changeset e948fde in mainline for uspace/srv/net/dnsrsrv/query.c


Ignore:
Timestamp:
2013-09-29T21:43:49Z (11 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dnsrsrv/query.c

    rf023251 re948fde  
    190190}
    191191
    192 int dns_name2host(const char *name, dns_host_info_t **rinfo, uint16_t af)
     192int dns_name2host(const char *name, dns_host_info_t **rinfo, ip_ver_t ver)
    193193{
    194194        dns_host_info_t *info = calloc(1, sizeof(dns_host_info_t));
     
    198198        int rc;
    199199       
    200         switch (af) {
    201         case AF_NONE:
     200        switch (ver) {
     201        case ip_any:
    202202                rc = dns_name_query(name, DTYPE_AAAA, info);
    203203               
     
    206206               
    207207                break;
    208         case AF_INET:
     208        case ip_v4:
    209209                rc = dns_name_query(name, DTYPE_A, info);
    210210                break;
    211         case AF_INET6:
     211        case ip_v6:
    212212                rc = dns_name_query(name, DTYPE_AAAA, info);
    213213                break;
Note: See TracChangeset for help on using the changeset viewer.