Skip to content
Commit 532cbacc authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Anas Nashif
Browse files

net: Add function to parse IP address string



The net_ipaddr_parse() will take a string with optional port
number and convert its information into struct sockaddr.
The format of the IP string can be:
     192.0.2.1:80
     192.0.2.42
     [2001:db8::1]:8080
     [2001:db8::2]
     2001:db::42

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 38b14802
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment