Changeset 3bacee1 in mainline for uspace/srv/net/dnsrsrv/dns_msg.c
- Timestamp:
- 2018-04-12T16:27:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/dns_msg.c
r76d0981d r3bacee1 383 383 question->qtype = dns_uint16_t_decode(pdu->data + name_eoff, 384 384 pdu->size - name_eoff); 385 question->qclass = dns_uint16_t_decode(pdu->data + sizeof(uint16_t) 386 +name_eoff, pdu->size - sizeof(uint16_t) - name_eoff);385 question->qclass = dns_uint16_t_decode(pdu->data + sizeof(uint16_t) + 386 name_eoff, pdu->size - sizeof(uint16_t) - name_eoff); 387 387 *eoff = name_eoff + 2 * sizeof(uint16_t); 388 388 … … 449 449 450 450 log_msg(LOG_DEFAULT, LVL_DEBUG2, "dns_rr_decode: rtype=0x%x, rclass=0x%x, ttl=0x%x", 451 rr->rtype, rr->rclass, rr->ttl 451 rr->rtype, rr->rclass, rr->ttl); 452 452 453 453 rdlength = dns_uint16_t_decode(bp, bsz); … … 510 510 (msg->rd ? BIT_V(uint16_t, OPB_RD) : 0) | 511 511 (msg->ra ? BIT_V(uint16_t, OPB_RA) : 0) | 512 msg->rcode 513 ); 512 msg->rcode); 514 513 515 514 hdr.qd_count = host2uint16_t_be(list_count(&msg->question));
Note:
See TracChangeset
for help on using the changeset viewer.