Skip to content
Commit c57650c4 authored by Florian Grandel's avatar Florian Grandel Committed by Fabio Baltieri
Browse files

net: context: clean up net_context_get()

* reduced cyclomatic complexity
* group validation by family to make the validation easier to understand
and extend
* change preprocessor markup where possible to allow for complete code
elimination when features (esp. IP) are disabled
* renamed net_context_get/set_ip_proto() to net_context_get_proto()

While the latter is formally part of the public API and might therefore
have to be deprecated rather than renamed, it is considered internal API
by the net developers, see
https://github.com/zephyrproject-rtos/zephyr/pull/48751#discussion_r942402612



Signed-off-by: default avatarFlorian Grandel <jerico.dev@gmail.com>
parent 9695a022
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment