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