-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnrc_netif: make auto-config of compression context optional #17678
gnrc_netif: make auto-config of compression context optional #17678
Conversation
I think #17594 does the same, it will just allow to completely disable the module instead. |
You still might want to configure compression manually, so I don't think it is the same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash
11114e9
to
3d819ce
Compare
Squashed |
Contribution description
For a set of my currently ongoing experiments it is important that the 6LoWPAN header stays roughly the same over all hops. With global addresses this can easily be achieved by not configuring a compression context. However, when using a border router with UHCP or DHCPv6, the compression context will be configured automatically and when you try to delete it, it is most often to late, as the prefix and the compression contexts are already disseminated throughout the network (and any further auto config message for the prefix might re-add it).
This change makes the auto-configuration of the compression context by setting the Kconfig variable
CONFIG_GNRC_NETIF_IPV6_DO_NOT_COMP_PREFIX
to false.Testing procedure
Flash and run the
examples/gnrc_border_router
twice: Once as is, and once with the new option set (e.g. by usingmake menuconfig
. Once a global prefix is configured (useifconfig
to check) use6ctx
to check: for the untouched binary,6ctx
should show the prefix as compression context 0, for whenCONFIG_GNRC_NETIF_IPV6_DO_NOT_COMP_PREFIX=y
the table should be empty.Issues/PRs references
None