Skip to content

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Jul 21, 2021

Contribution description

This moves the composition and parsing of a DNS message to its own module. The idea is that they can be reused for other DNS transports such as DoH. Of course complexity and thus code size increases which is why I like to discuss this. The other route could be to integrate other transports such as DoH into sock_dns monolithicly.

Testing procedure

tests/gnrc_sock_dns should still pass. If desired, I can also add extra tests for dns_msg.

Issues/PRs references

None.

@miri64 miri64 added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR labels Jul 21, 2021
@github-actions github-actions bot added Area: build system Area: Build system Area: network Area: Networking Area: sys Area: System labels Jul 21, 2021
@miri64 miri64 requested a review from kaspar030 July 21, 2021 13:02
@miri64 miri64 force-pushed the sock_dns/enh/factor-out-msg-parsing branch from 05d3836 to 4ac0c72 Compare July 21, 2021 13:05
@@ -7,31 +7,24 @@
*/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to avoid confusion in the review: I did not rename the file and then moved the sock_dns parts to sys/net/application_layer/dns/dns.c, rather I renamed sys/net/application_layer/dns/dns.c to sys/net/application_layer/sock_dns/dns.c and then moved the message composition and parsing parts from sys/net/application_layer/sock_dns/dns.c to this sys/net/application_layer/dns/msg.c. However, since that was the majority of sys/net/application_layer/sock_dns/dns.c's content, Git interpreted it as a rename.

@miri64 miri64 force-pushed the sock_dns/enh/factor-out-msg-parsing branch from 4ac0c72 to eea2b4a Compare July 21, 2021 14:32
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Aug 6, 2021
Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash!

@miri64 miri64 force-pushed the sock_dns/enh/factor-out-msg-parsing branch from f58ab2e to 7920ab2 Compare August 11, 2021 09:55
@miri64
Copy link
Member Author

miri64 commented Aug 11, 2021

Squashed

@miri64 miri64 merged commit 6da2f0f into RIOT-OS:master Aug 11, 2021
@miri64 miri64 deleted the sock_dns/enh/factor-out-msg-parsing branch August 11, 2021 10:43
@benpicco benpicco added this to the Release 2021.10 milestone Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Discussion: RFC The issue/PR is used as a discussion starting point about the item of the issue/PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants