net: Improve error message when parsing invalid ipv4 address
net: Improve error message when parsing invalid ipv4 address

This patch adds error handling code when building an ipv4 address from
a string so that upon failure we can provide a clear error message
instead of a generic invalid argument exception.

Signed-off-by: Duarte Nunes <a60e8b7496f7715d71354fe4c06dd24017025bf1@scylladb.com>
Message-Id: <1458601765-14671-1-git-send-email-a60e8b7496f7715d71354fe4c06dd24017025bf1@scylladb.com>

dreamsxin/seastar,cloudius-systems/seastar,syuu1228/seastar,avikivity/seastar,scylladb/seastar,kjniemi/seastar,avikivity/seastar,dreamsxin/seastar,syuu1228/seastar,kjniemi/seastar,cloudius-systems/seastar,kjniemi/seastar,syuu1228/seastar,scylladb/seastar,dreamsxin/seastar,scylladb/seastar,cloudius-systems/seastar,avikivity/seastar