zephyr/samples
Jukka Rissanen 9028ecbc56 samples: net: zperf: Allow DHCPv4 or manually set addresses
If user has enabled DHCPv4, then allow to use its address instead
of giving error if static address cannot be set. Similar fix for
IPv6, so allow user to manually set an IPv6 address.

Because DHCPv4 has already set the IPv4 address to the network
interface, then zperf might not be able to add the pre-configured
address to it. So instead of returning immediately, try to use the
IP address that is already in the network interface. This way we
avoid this error print.

  uart:~$ zperf udp download 5001

  Setting IP address 2001:db8::1
  Setting destination IP address 2001:db8::2
  Cannot set IPv4 address 192.0.2.1
  Unable to set IP
  Setting destination IP address 192.0.2.2

  Cannot set IPv4 address 192.0.2.1
  Unable to set IPv4
  Binding to 192.0.2.1
  Cannot bind IPv4 UDP port 5001 (-2)

In this example, the network interface already had a proper and working
IPv4 address 192.168.0.2 in it.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2020-12-01 16:32:07 +02:00
..
application_development boards: arm: remove non-existing doc link from partition definitions 2020-10-27 15:01:19 -04:00
basic samples: basic/minimal: disable memory pool when MT=n 2020-09-19 05:49:13 -04:00
bluetooth Bluetooth: Mesh: Demo: Increase loopback buf count 2020-11-26 13:04:22 +01:00
boards samples: nrf: battery: fix reference to ADC node 2020-11-27 20:26:45 -05:00
cpp_synchronization samples: cpp_synchronization: filter for integration 2020-07-30 08:00:03 -04:00
debug samples: debug: Add a simple gdbstub sample 2020-09-02 20:54:57 -04:00
display samples: display: cfb_custom_font: add support for ssd1306fb 2020-11-02 09:40:00 +01:00
drivers samples: drivers: add platform filtering for led pwm 2020-11-19 12:36:03 +01:00
hello_world samples: hello_world: cmake warning 2020-09-24 07:25:47 -04:00
lorawan/class_a samples: lorawan: class_a: fix selection of activation type 2020-10-21 08:33:39 -04:00
mpu device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
net samples: net: zperf: Allow DHCPv4 or manually set addresses 2020-12-01 16:32:07 +02:00
philosophers samples: philosophers: enable for integration testing 2020-07-30 08:00:03 -04:00
portability samples: cmsis_rtos_v1: philosophers: skip up_squared 2020-09-24 13:20:32 -05:00
posix samples: posix: gettimeofday: incorporate libc time API tests 2020-09-04 14:46:43 +02:00
scheduler samples: scheduler: metairq_dispatch: add label directive 2020-08-28 12:54:40 +02:00
sensor Samples: Fix printf in MPU6050 example 2020-11-19 12:37:30 -05:00
shields samples: add FP formatting to all samples that require it 2020-11-17 14:44:59 -06:00
smp samples: smp: pi: Fix path in build instructions 2020-10-26 17:25:37 +01:00
subsys shell: example: prj_minimal config update 2020-11-30 16:03:01 -06:00
synchronization samples: synchronisation: run thread_b on cpu 0 in SMP mode 2020-10-19 10:57:15 -04:00
testing/integration sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
tfm_integration tfm: Configure TFM via Kconfig instead of Cmake 2020-11-17 14:39:52 +02:00
userspace samples: userspace: syscall_perf 2020-11-09 15:37:11 -05:00
video device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
classic.rst
index.rst samples: debug: Add a simple gdbstub sample 2020-09-02 20:54:57 -04:00