Skip to content

Commit

Permalink
Merge pull request #16914 from miri64/dns_msg/fix/id-byteorder
Browse files Browse the repository at this point in the history
dns_msg: Use correct byteorder for ID
  • Loading branch information
benpicco committed Sep 29, 2021
2 parents 280c756 + e0ac9d3 commit df52b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/application_layer/dns/msg.c
Expand Up @@ -103,7 +103,7 @@ size_t dns_msg_compose_query(void *dns_buf, const char *domain_name,

dns_hdr_t *hdr = (dns_hdr_t*) buf;
memset(hdr, 0, sizeof(*hdr));
hdr->id = id;
hdr->id = htons(id);
hdr->flags = htons(0x0120);
hdr->qdcount = htons(1 + (family == AF_UNSPEC));

Expand Down

0 comments on commit df52b07

Please sign in to comment.