Skip to content

net/dhcpv6 : Expose configurations to Kconfig#14599

Merged
leandrolanzieri merged 4 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_dhcpv6
Jul 28, 2020
Merged

net/dhcpv6 : Expose configurations to Kconfig#14599
leandrolanzieri merged 4 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_dhcpv6

Conversation

@akshaim
Copy link
Copy Markdown
Member

@akshaim akshaim commented Jul 24, 2020

Contribution description

This PR exposes compile configurations in net/dhcpv6 to Kconfig.

Skipped DHCPV6_CLIENT_SERVER_MAX as its unused.

Testing procedure

  1. New documentation was built using Doxygen

    The build works fine.

  2. Test files were added to tests/net_dhcpv6/

    The test file can be found here

    Compiled binaries for native

  3. examples/gnrc_border_router

    Build works fine for native.

Default State:

Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-344-g4e2b5-Kconfig_dhcpv6_tests)
CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX=(1U)

Usage with CFLAGS :

CFLAGS += -DCONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX=2
Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-344-g4e2b5-Kconfig_dhcpv6_tests)
CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX=2

Usage with menuconfig :

make menuconfig

Default values

RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-344-g4e2b5-Kconfig_dhcpv6_tests)
CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX=1
Macros Configured output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-344-g4e2b5-Kconfig_dhcpv6_tests)
CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX=4

MACROS were successfully configured.

Issues/PRs references

#12888

akshaim added 3 commits July 23, 2020 21:10
Expose configurations to Kconfig. Add conditional CFLAGS to avoid
conflicts with Kconfig.
Add configuration 'CONFIG_DHCPV6_CLIENT_PFX_LEASE_MAX' to
configuration group
@leandrolanzieri leandrolanzieri added Area: Kconfig Area: Kconfig integration Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Jul 24, 2020
@leandrolanzieri
Copy link
Copy Markdown
Contributor

@miri64 DHCPV6_CLIENT_SERVER_MAX seems to be unused, do you think we could remove it?

@leandrolanzieri leandrolanzieri added this to the Release 2020.10 milestone Jul 24, 2020
@leandrolanzieri leandrolanzieri added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jul 24, 2020
@miri64
Copy link
Copy Markdown
Member

miri64 commented Jul 27, 2020

@miri64 DHCPV6_CLIENT_SERVER_MAX seems to be unused, do you think we could remove it?

I guess I originally planned to support more than one server, but it is indeed not used. So we probably can remove it for now to avoid confusion.

Remove unused macro 'DHCPV6_CLIENT_SERVER_MAX'
@akshaim
Copy link
Copy Markdown
Member Author

akshaim commented Jul 28, 2020

@miri64 DHCPV6_CLIENT_SERVER_MAX seems to be unused, do you think we could remove it?

I guess I originally planned to support more than one server, but it is indeed not used. So we probably can remove it for now to avoid confusion.

Done.

@leandrolanzieri leandrolanzieri added Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines labels Jul 28, 2020
Copy link
Copy Markdown
Contributor

@leandrolanzieri leandrolanzieri left a comment

Choose a reason for hiding this comment

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

Macro is generated correctly and documentation looks good. There are also no more occurrences of DHCPV6_CLIENT_SERVER_MAX. ACK.

@leandrolanzieri leandrolanzieri added Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines labels Jul 28, 2020
@leandrolanzieri leandrolanzieri merged commit cfdf304 into RIOT-OS:master Jul 28, 2020
@akshaim akshaim deleted the Kconfig_dhcpv6 branch July 28, 2020 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Kconfig Area: Kconfig integration CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines 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.

3 participants