Changeset e948fde in mainline for uspace/srv/net/dnsrsrv/query.c
- Timestamp:
- 2013-09-29T21:43:49Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a324d99
- Parents:
- f023251
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/query.c
rf023251 re948fde 190 190 } 191 191 192 int dns_name2host(const char *name, dns_host_info_t **rinfo, uint16_t af)192 int dns_name2host(const char *name, dns_host_info_t **rinfo, ip_ver_t ver) 193 193 { 194 194 dns_host_info_t *info = calloc(1, sizeof(dns_host_info_t)); … … 198 198 int rc; 199 199 200 switch ( af) {201 case AF_NONE:200 switch (ver) { 201 case ip_any: 202 202 rc = dns_name_query(name, DTYPE_AAAA, info); 203 203 … … 206 206 207 207 break; 208 case AF_INET:208 case ip_v4: 209 209 rc = dns_name_query(name, DTYPE_A, info); 210 210 break; 211 case AF_INET6:211 case ip_v6: 212 212 rc = dns_name_query(name, DTYPE_AAAA, info); 213 213 break;
Note:
See TracChangeset
for help on using the changeset viewer.