zephyr/tests
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
..
application_development/gen_inc_file tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
benchmarks arch: arm: nrf: Rename nrf5 SoC Family to nrf 2018-03-20 11:57:14 +01:00
bluetooth boards: delete arduino_101_ble board 2018-03-23 16:21:16 -04:00
boards/altera_max10 tests: boards: altera_max10: Add test for Nios-II i2c core 2018-02-07 19:37:35 -05:00
booting/stub tests/booting/stub: disable banner 2017-12-14 13:11:04 -05:00
compliance
crypto tests: crypto: rand32: move rand32 test out of kernel 2018-03-23 07:29:18 -04:00
drivers drivers: eth: gmac: Do not verify config for unit tests 2018-03-20 10:37:34 -04:00
include native test: End tests as soon as they pass fail 2018-02-05 06:26:53 -08:00
kernel tests: kernel: mem_protect: Update platform whitelist 2018-03-26 14:24:34 -04:00
lib lib: base64: Add statement of changes 2018-03-23 13:54:48 +01:00
misc/test_build tests: Added test for UTF-8 characters in Kconfig values 2018-03-21 19:11:19 -04:00
net net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
posix tests: posix: fix semaphore.h test 2018-03-21 14:27:47 -07:00
power tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
shell test: shell: native_posix also supports shell 2018-02-02 07:48:46 -08:00
subsys drivers: flash: nrf: Rename nrf5 to nrf 2018-03-20 20:07:09 +01:00
sys/ringbuffer tests: add ringbuffer api test and combine original test 2018-01-29 23:19:17 -05:00
unit tests: Remove broken net_buf unit tests 2018-02-10 09:20:42 +02:00
ztest cleanup: replace old jira numbers with GH issues 2018-03-26 13:13:04 -04:00
CMakeLists.txt tests: add CONFIG_TEST for marking tests 2018-01-08 10:03:57 -05:00
Kconfig tests: Kconfig: Added a new kconfig. 2018-03-19 18:16:58 -04:00