zephyr/tests/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
..
6lo tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
all tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
app net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
arp net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
buf tests: net/buf: Update to new API 2018-02-10 09:20:42 +02:00
checksum_offload net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
context tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
dhcpv4 tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
icmpv6 tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
ieee802154 net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
iface net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
ip-addr tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
ipv6 net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
ipv6_fragment net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
lib net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
mgmt tests: net: mgmt: Increase mgmt event stack 2018-02-10 09:20:42 +02:00
mld tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
neighbor tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
net_pkt tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
route tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
rpl net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
socket net: sockets: Support MSG_PEEK flag in zsock_recvfrom 2018-03-20 15:55:04 +02:00
tcp net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
trickle tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
udp net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
utils tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05:00
websocket tests: net: websocket: Fix null at the end of string 2018-03-26 13:01:07 +03:00