Changeset 0773396 in mainline for uspace/srv/net/dnsrsrv/query.c
- Timestamp:
- 2013-12-25T13:05:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc54126c
- Parents:
- f4a47e52 (diff), 6946f23 (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
rf4a47e52 r0773396 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" … … 99 98 } 100 99 101 list_foreach(amsg->answer, link) { 102 dns_rr_t *rr = list_get_instance(link, dns_rr_t, msg); 103 100 list_foreach(amsg->answer, msg, dns_rr_t, rr) { 104 101 log_msg(LOG_DEFAULT, LVL_DEBUG, " - '%s' %u/%u, dsize %zu", 105 102 rr->name, rr->rtype, rr->rclass, rr->rdata_size); … … 192 189 } 193 190 194 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) 195 192 { 196 193 dns_host_info_t *info = calloc(1, sizeof(dns_host_info_t)); … … 200 197 int rc; 201 198 202 switch ( af) {203 case AF_NONE:199 switch (ver) { 200 case ip_any: 204 201 rc = dns_name_query(name, DTYPE_AAAA, info); 205 202 … … 208 205 209 206 break; 210 case AF_INET:207 case ip_v4: 211 208 rc = dns_name_query(name, DTYPE_A, info); 212 209 break; 213 case AF_INET6:210 case ip_v6: 214 211 rc = dns_name_query(name, DTYPE_AAAA, info); 215 212 break;
Note:
See TracChangeset
for help on using the changeset viewer.