Changes in uspace/srv/net/dnsrsrv/query.c [5a324d99:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/query.c
r5a324d99 rfeeac0d 39 39 #include <stdlib.h> 40 40 #include <str.h> 41 #include <net/socket_codes.h> 41 42 #include "dns_msg.h" 42 43 #include "dns_std.h" … … 189 190 } 190 191 191 int dns_name2host(const char *name, dns_host_info_t **rinfo, ip_ver_t ver)192 int dns_name2host(const char *name, dns_host_info_t **rinfo, uint16_t af) 192 193 { 193 194 dns_host_info_t *info = calloc(1, sizeof(dns_host_info_t)); … … 197 198 int rc; 198 199 199 switch ( ver) {200 case ip_any:200 switch (af) { 201 case AF_NONE: 201 202 rc = dns_name_query(name, DTYPE_AAAA, info); 202 203 … … 205 206 206 207 break; 207 case ip_v4:208 case AF_INET: 208 209 rc = dns_name_query(name, DTYPE_A, info); 209 210 break; 210 case ip_v6:211 case AF_INET6: 211 212 rc = dns_name_query(name, DTYPE_AAAA, info); 212 213 break;
Note:
See TracChangeset
for help on using the changeset viewer.