zephyr/subsys
Jukka Rissanen ca8b00a3cc net: if: Make interface IP configuration more flexible
Instead of always allocating both IPv6 and IPv4 address information
to every network interface, allow more fine grained address
configuration. So it is possible to have IPv6 or IPv4 only network
interfaces.

This commit introduces two new config options:
CONFIG_NET_IF_MAX_IPV4_COUNT and CONFIG_NET_IF_MAX_IPV6_COUNT
which tell how many IP address information structs are allocated
statically. At runtime when network interface is setup, it is then
possible to attach this IP address info struct to a specific
network interface. This can save considerable amount of memory
as the IP address information struct can be quite large (depends
on how many IP addresses user configures in the system).

Note that the value of CONFIG_NET_IF_MAX_IPV4_COUNT and
CONFIG_NET_IF_MAX_IPV6_COUNT should reflect the estimated number of
network interfaces in the system. So if if CONFIG_NET_IF_MAX_IPV6_COUNT
is set to 1 and there are two network interfaces that need IPv6
addresses, then the system will not be able to setup IPv6 addresses to
the second network interface in this case. This scenario might be
just fine if the second network interface is IPv4 only. The net_if.c
will print a warning during startup if mismatch about the counts and
the actual number of network interface is detected.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-03-27 10:06:54 -04:00
..
bluetooth Bluetooth: controller: Fix missing device filter clear 2018-03-26 16:44:35 +02:00
console kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
cpp kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
debug arch: x86: Unwind the stack on fatal errors 2018-03-16 14:12:15 -07:00
dfu subsys: dfu: boot: Remove unused ver query code. 2018-02-21 18:53:42 -05:00
disk disk: delete the GET_DISK_SIZE IOCTL. 2018-01-31 09:14:40 -05:00
fs subsys: fs: Fix fs_file_t and fs_dir_t usage 2018-03-13 09:47:58 -05:00
logging net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
mgmt mgmt: Switch to new base64 library 2018-03-23 05:18:11 -04:00
net net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
random subsys: random: Fix semaphore initial count of xoroshiro128 2017-11-15 15:47:10 -06:00
shell net: websocket: Add console support 2018-03-15 15:17:36 +02:00
storage subsys: storage: flash_map: enable only if any flash driver is enable 2018-03-08 10:18:57 +01:00
usb cleanup: replace old jira numbers with GH issues 2018-03-26 13:13:04 -04:00
CMakeLists.txt subsys: mgmt: CMake and Kconfig support. 2018-02-20 22:07:52 +01:00
Kconfig subsys: mgmt: CMake and Kconfig support. 2018-02-20 22:07:52 +01:00