Skip to content

dhcpv6_client: make IA_PD an optional module#16658

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
miri64:dhcpv6_client/enh/optional-ia_pd
Jul 21, 2021
Merged

dhcpv6_client: make IA_PD an optional module#16658
benpicco merged 1 commit intoRIOT-OS:masterfrom
miri64:dhcpv6_client/enh/optional-ia_pd

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Jul 20, 2021

Contribution description

Prefix delegation used to be the only supported feature of our DHCPv6 client, but by now it also supports MUD, DNS recursive name servers and IA_NA is on the horizon. So it makes sense to make IA_PD an optional module like all those other features are as well.

Testing procedure

Binary sizes of the tests/gnrc_dhcpv6_* test applications as well as the border router with USE_DHCPV6=1 should stay the same with and without this fix (build with RIOT_CI_BUILD=1).

When removing the line

USEMODULE += dhcpv6_client_ia_pd

the build size should decrease drastically. The test will fail (since it checks for working prefix delegation), but it should not crash during the run. Additionally, one may check if the proper DHCPv6 handshake of SOLICIT -> ADVERTISE -> REQUEST -> REPLY is completed, either by sniffing the traffic during the test or by enabling DEBUG here

#define ENABLE_DEBUG 0

Issues/PRs references

None.

@miri64 miri64 added the Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation label Jul 20, 2021
@miri64 miri64 requested a review from benpicco July 20, 2021 13:22
@github-actions github-actions bot added Area: build system Area: Build system Area: network Area: Networking Area: sys Area: System Area: tests Area: tests and testing framework labels Jul 20, 2021
@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 Jul 20, 2021
@miri64 miri64 force-pushed the dhcpv6_client/enh/optional-ia_pd branch from 233249e to 32dfb61 Compare July 20, 2021 18:00
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 21, 2021

Addressed the change requests.

@benpicco
Copy link
Copy Markdown
Contributor

Please squash!

Prefix delegation used to be the only supported feature of our DHCPv6
client, but by now it also supports MUD, DNS recursive name servers and
IA_NA is on the horizon. So it makes sense to make IA_PD an optional
module like all those other features are as well.
@miri64 miri64 force-pushed the dhcpv6_client/enh/optional-ia_pd branch from 8f8f06b to 38d14b6 Compare July 21, 2021 09:37
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Jul 21, 2021

$ git rebase -i HEAD~3 --autosquash
:x
Successfully rebased and updated refs/heads/dhcpv6_client/enh/optional-ia_pd.

@benpicco benpicco merged commit c4bc40f into RIOT-OS:master Jul 21, 2021
@miri64 miri64 deleted the dhcpv6_client/enh/optional-ia_pd branch July 21, 2021 13:39
@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 Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants