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


Ignore:
Timestamp:
2013-12-31T07:57:14Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b973dc
Parents:
6297465 (diff), 208b5f5 (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.
Message:

mainline changes

File:
1 edited

Legend:

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

    r6297465 r4c14b88  
    3939#include <stdlib.h>
    4040#include <str.h>
    41 #include <net/socket_codes.h>
    4241#include "dns_msg.h"
    4342#include "dns_std.h"
     
    190189}
    191190
    192 int dns_name2host(const char *name, dns_host_info_t **rinfo, uint16_t af)
     191int dns_name2host(const char *name, dns_host_info_t **rinfo, ip_ver_t ver)
    193192{
    194193        dns_host_info_t *info = calloc(1, sizeof(dns_host_info_t));
     
    198197        int rc;
    199198       
    200         switch (af) {
    201         case AF_NONE:
     199        switch (ver) {
     200        case ip_any:
    202201                rc = dns_name_query(name, DTYPE_AAAA, info);
    203202               
     
    206205               
    207206                break;
    208         case AF_INET:
     207        case ip_v4:
    209208                rc = dns_name_query(name, DTYPE_A, info);
    210209                break;
    211         case AF_INET6:
     210        case ip_v6:
    212211                rc = dns_name_query(name, DTYPE_AAAA, info);
    213212                break;
Note: See TracChangeset for help on using the changeset viewer.