zephyr/subsys/net/lib/app
Michael Scott 086893fc55 net: app: client: set remote port after DNS lookup
In net_app_init_client(), the remote port is set after an initial
set of checks based on the remote_addr's assigned family.

However, if the peer_addr_str is a host name which needs to be
resolved via DNS, the family won't be set yet, and the port is
left as 0.

To fix this behavior let's move the port assignment after the
DNS lookup section to be sure that the remote sa_family is set.

Signed-off-by: Michael Scott <michael@opensourcefoundries.com>
2018-02-14 09:40:01 +02:00
..
bt_settings.c Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
bt_settings.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
client.c net: app: client: set remote port after DNS lookup 2018-02-14 09:40:01 +02:00
CMakeLists.txt subsys/net/lib: Clear up CMakeLists.txt 2017-12-11 09:34:16 -05:00
ieee802154_settings.c net/lib: 15.4 interface is set UP after channel is configured 2018-01-15 15:15:38 +02:00
ieee802154_settings.h net: app: Setup IEEE 802.15.4 during init 2017-07-20 17:09:27 +03:00
init.c net: if: Handle new address type of NET_ADDR_OVERRIDABLE 2018-01-23 09:25:51 +02:00
Kconfig kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
net_app_private.h net: app: Fix compilation error if debugging is enabled 2017-10-24 11:40:55 -07:00
net_app.c net: app: Add a new API to get net pkt based on dst 2018-02-09 14:45:53 +02:00
server.c net: app: Close TLS connection properly 2017-10-19 22:21:25 -04:00