Changeset 4c14b88 in mainline for uspace/srv/net/dnsrsrv/query.c
- Timestamp:
- 2013-12-31T07:57:14Z (11 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/query.c
r6297465 r4c14b88 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.