zephyr/subsys/net/lib
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
..
app net: app: client: set remote port after DNS lookup 2018-02-14 09:40:01 +02:00
coap net: coap: retransmission for four times 2018-02-13 13:06:15 +02:00
dns net: dns: Allow to initialize DNS servers from struct sockaddr[] 2018-01-18 17:30:40 +02:00
http net: http: Fix http_prepare_and_send 2018-02-02 16:50:07 +02:00
lwm2m net: lwm2m: add max device power source config option 2018-02-08 09:49:01 +02:00
mqtt kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
openthread subsys: net: lib: Add OpenThread platform 2018-01-29 22:42:03 -05:00
sntp kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
sockets net: sockets: getaddrinfo() buffer overflow, etc. fixes 2018-02-12 20:17:26 -05:00
CMakeLists.txt subsys: net: lib: Add OpenThread platform 2018-01-29 22:42:03 -05:00
Kconfig net: remove zoap library 2018-01-02 09:41:24 -05:00