zephyr/samples/net
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
..
coap_client net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
coap_server samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00
coaps_client mbedtls: Replace COAP-specific max len setting with generic 2018-03-18 09:38:22 -07:00
coaps_server mbedtls: Replace COAP-specific max len setting with generic 2018-03-18 09:38:22 -07:00
common
dhcpv4_client net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
dns_resolve samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00
echo_client drivers: flash: nrf: Rename nrf5 to nrf 2018-03-20 20:07:09 +01:00
echo_server drivers: flash: nrf: Rename nrf5 to nrf 2018-03-20 20:07:09 +01:00
eth_native_posix samples: net: eth_native_posix: Sample for native networking 2018-03-18 20:47:36 -04:00
http_client mbedtls: Add CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN 2018-03-18 09:38:22 -07:00
http_server mbedtls: Add CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN 2018-03-18 09:38:22 -07:00
irc_bot samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00
leds_demo samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00
lwm2m_client doc: getting_started: Support multi-OS instructions 2018-01-18 16:53:31 -05:00
mbedtls_dtlsclient cmake: Ported mbedTLS to use Zephyr interface libraries 2018-01-02 22:09:01 -05:00
mbedtls_dtlsserver mbedtls: Switch default MBEDTLS_CFG_FILE to config-mini-tls1_2.h 2018-02-15 12:35:31 -05:00
mbedtls_sslclient cmake: Ported mbedTLS to use Zephyr interface libraries 2018-01-02 22:09:01 -05:00
mdns_responder samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00
mqtt_publisher mbedtls: Add CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN 2018-03-18 09:38:22 -07:00
nats samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00
rpl-mesh-qemu sample: net: RPL mesh sample over QEMU 2018-02-20 14:47:14 +02:00
rpl-node samples: rpl: do not build when assert is enabled 2018-01-09 11:13:08 -05:00
sntp_client samples: bluetooth and net samples need test setup 2017-12-28 20:24:29 -05:00
sockets samples: net: echo_async: Better error and write handling 2018-03-02 16:50:41 +01:00
syslog_net samples: net: syslog: Remote syslog service example 2018-03-15 15:19:46 +02:00
telnet doc: getting_started: Support multi-OS instructions 2018-01-18 16:53:31 -05:00
throughput_server net: samples: throughput_server: Decrease buffer count 2018-02-10 09:20:42 +02:00
wpan_serial usb: Rename SYS_LOG_USB to SYS_LOG_USB_DEVICE 2018-01-17 18:53:05 -05:00
wpanusb tests: samples: Exclude nrf52840_pca10056 from wpanusb sample 2018-03-15 12:39:53 +01:00
ws_console samples: net: websocket_console: Do not copy pass end of string 2018-03-26 13:00:11 +03:00
ws_echo_server net: websocket: Use system provided base64 function 2018-03-23 08:30:26 -04:00
zperf net: samples: Reduce net pkt RAM usage 2018-03-16 14:45:24 -07:00
net.rst