Changeset f85ed4b in mainline for uspace/srv/net/dnsres/query.c
- Timestamp:
- 2012-08-12T17:51:26Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 08a6382
- Parents:
- adae30d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsres/query.c
radae30d rf85ed4b 39 39 #include "dns_type.h" 40 40 #include "query.h" 41 #include "transport.h" 41 42 42 43 static uint16_t msg_id; 43 44 44 int dns_name2host(c har *name, dns_host_info_t *info)45 int dns_name2host(const char *name, dns_host_info_t *info) 45 46 { 46 47 dns_message_t msg; 48 dns_message_t *amsg; 47 49 dns_question_t question; 50 int rc; 48 51 49 question.qname = name;52 question.qname = (char *)name; 50 53 question.qtype = DTYPE_A; 51 54 question.qclass = DC_IN; 52 55 53 56 list_initialize(&msg.question); 54 list_append( question.msg, &msg.question);57 list_append(&question.msg, &msg.question); 55 58 56 59 msg.id = msg_id++; … … 62 65 msg.ra = false; 63 66 67 rc = dns_request(&msg, &amsg); 68 if (rc != EOK) 69 return rc; 70 64 71 return EOK; 65 72 }
Note:
See TracChangeset
for help on using the changeset viewer.