zephyr/samples/net/echo_client
Michael Scott ca6a686495 net: correct in*_addr parameter of net_addr_pton()
Currently, the function accepts a struct sockaddr * but the code
immediately type casts this to either in_addr or in6_addr.  This is
incorrect behavior as the first field in a sockaddr is sa_family_t
and not address data.

So without special knowledge, a developer will use a sockaddr structure
as the parameter and then wonder why the address information isn't being
set correctly.

Let's change this parameter to void * which makes this function similar
to inet_pton().

Jira: ZEP-1616

Change-Id: I1fc9368da999d90feb07c03fac55dcc749d4eba6
Signed-off-by: Michael Scott <michael.scott@linaro.org>
2017-02-03 15:59:13 +02:00
..
src net: correct in*_addr parameter of net_addr_pton() 2017-02-03 15:59:13 +02:00
Makefile license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
prj_arduino_101.conf drivers/ethernet: Update default GPIO pin for the ENC28J60 module 2017-01-20 16:23:17 +02:00
prj_arduino_101_cc2520.conf ieee802154: conf: add common log level 2017-01-13 10:29:00 +01:00
prj_bt.conf net: echo_client: Enable CONFIG_NET_L2_BLUETOOTH_SHELL in prj_bt.conf 2017-01-13 14:37:53 +00:00
prj_cc2520.conf ieee802154: conf: add common log level 2017-01-13 10:29:00 +01:00
prj_frdm_k64f_cc2520.conf samples: net: Increase spi log level 2017-01-23 15:15:54 -06:00
prj_frdm_k64f_mcr20a.conf samples: net: add configs for MCR20A 2017-01-27 12:35:51 +02:00
prj_qemu_802154.conf ieee802154: conf: add common log level 2017-01-13 10:29:00 +01:00
prj_qemu_x86.conf samples: net: Enable buffer warning and errors in echo apps on qemu 2017-01-20 16:23:19 +02:00
prj_slip.conf net: Remove NET_SLIP choice from Kconfig 2017-01-13 10:29:02 +01:00
testcase.ini samples: net: Add echo_client build test for frdm CC2520 configuration 2017-01-02 10:03:16 +01:00