zephyr/samples
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 samples: Add sample that demonstrates a custom board definition 2018-03-27 09:35:35 -04:00
basic arch: arm: nrf: Rename nrf5 SoC Family to nrf 2018-03-20 11:57:14 +01:00
bluetooth doc: samples: hci_uart: Expand instructions for the Controller 2018-03-27 09:45:08 +02:00
boards Bluetooth: Mesh: Switch to using Linux Foundation Company ID 2018-03-05 19:54:21 -05:00
cpp_synchronization sample: cpp_synchronization: support console harness 2018-01-25 04:45:35 +05:30
drivers drivers: flash: nrf: Rename nrf5 to nrf 2018-03-20 20:07:09 +01:00
grove samples: remove more build_only tags 2017-12-28 20:24:29 -05:00
hello_world samples: hello_world: disbale asserts on single thread (REVERTME) 2018-01-25 04:45:35 +05:30
mpu kernel: mem_domain: k_mem_partition is now placed in kernel memory. 2018-03-20 09:19:59 -07:00
net net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
nfc/nfc_hello tests: nfc_hello: remove filter and support harness 2018-01-25 04:45:35 +05:30
philosophers tests: Few test require CONFIG_STDOUT_CONSOLE=n 2018-02-05 07:05:12 -08:00
sensor samples: sensor: ccs811: Add dummy dts.fixup so we can always build 2018-03-05 14:16:46 -06:00
subsys samples: mgmt: Remove unnecessary mbedTLS reference 2018-03-26 16:29:27 +02:00
synchronization sample: synchronization: support console harness 2018-01-25 04:45:35 +05:30
testing/integration tests: Remove broken net_buf unit tests 2018-02-10 09:20:42 +02:00
xtensa_asm2 samples/xtensa-asm2: Unit test for new Xtensa assembly primitives 2018-02-16 10:44:29 -05:00
kernel.rst doc: spelling fixes in samples/ and boards/ 2017-06-12 18:28:08 -04:00
samples.rst doc: Introduce the sample category app. dev. to the docs 2018-03-27 09:35:35 -04:00