zephyr/include
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
..
arch cleanup: replace old jira numbers with GH issues 2018-03-26 13:13:04 -04:00
bluetooth Bluetooth: Remove 'own_addr' from advertising parameters 2018-03-21 18:11:49 +02:00
crypto
debug
dfu subsys: dfu: boot: Remove unused ver query code. 2018-02-21 18:53:42 -05:00
display
drivers usb: call status_callback on interface set 2018-03-16 14:45:24 -07:00
dt-bindings drivers: clock_control: Provide support for stm32l0x 2018-03-10 11:42:25 -06:00
fs subsys: fs: Add Virtual File system Switch (VFS) support 2018-03-10 21:38:04 -05:00
linker net: if: Separate IP address configuration from net_if 2018-03-27 10:06:54 -04:00
logging subsys: kernel_event_logger: change kernel event values 2018-02-23 07:29:29 -05:00
mgmt mgmt: Bluetooth transport for SMP (mcumgr). 2018-02-20 22:07:52 +01:00
misc doc: do not show undocumented members 2018-03-20 14:01:30 -04:00
net net: if: Make interface IP configuration more flexible 2018-03-27 10:06:54 -04:00
posix include: posix: correcting the return type of sleep. 2018-03-26 09:50:17 -04:00
random
shell subsys: mgmt: Shell transport for SMP (mcumgr). 2018-02-20 22:07:52 +01:00
toolchain
usb hid: change the API table to const. 2018-03-21 19:45:11 -04:00
zephyr
adc.h
aio_comparator.h
atomic.h
base64.h lib: base64: Add statement of changes 2018-03-23 13:54:48 +01:00
cache.h
clock_control.h
console.h
counter.h
crc8.h crc: make crc8_ccitt() match the other CRC functions. 2018-03-10 21:49:07 -05:00
crc16.h
device.h device.h: doc: Refactor to keep documentation infront of impl. 2018-03-26 13:17:39 -04:00
disk_access.h
dma.h
entropy.h
eth.h
fcb.h
flash_map.h
flash.h
fs.h subsys: fs: Add Virtual File system Switch (VFS) support 2018-03-10 21:38:04 -05:00
gpio.h doc: do not show undocumented members 2018-03-20 14:01:30 -04:00
i2c.h
i2s.h doc: do not show undocumented members 2018-03-20 14:01:30 -04:00
init.h init.h: Fix english in comment 2018-03-26 13:17:39 -04:00
ipm.h
irq_offload.h
irq.h
json.h
kernel_version.h
kernel.h kernel: api: mark internal functions as such 2018-03-20 14:01:30 -04:00
led_strip.h
pinmux.h
power.h
pwm.h
ring_buffer.h
rtc.h
sensor.h
shared_irq.h
spi_legacy.h
spi.h
spinlock.h
stats.h subsys: stats - Statistics support 2018-02-20 22:07:52 +01:00
sw_isr_table.h
sys_clock.h
sys_io.h
syscall.h
toolchain.h
uart.h
watchdog.h
zephyr.h