net: if: Allow app to disable IPv4 or IPv6 for the interface

Application can disable IPv4 or IPv6 later if those are not
needed nor used for a given network interface.

Fixes #14581

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2021-02-23 12:19:10 +02:00 committed by Anas Nashif
commit 897698bc78
3 changed files with 61 additions and 5 deletions

View file

@ -187,6 +187,12 @@ enum net_if_flag {
*/
NET_IF_FORWARD_MULTICASTS,
/** Interface supports IPv4 */
NET_IF_IPV4,
/** Interface supports IPv6 */
NET_IF_IPV6,
/** @cond INTERNAL_HIDDEN */
/* Total number of flags - must be at the end of the enum */
NET_IF_NUM_FLAGS