Use ip_parse() and ipv6_parse() and variants in more places.
authorBen Pfaff <blp@ovn.org>
Wed, 16 Dec 2015 02:04:20 +0000 (18:04 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 16 Dec 2015 02:04:24 +0000 (18:04 -0800)
commite769509208591fbe4f42ba098f98374ea8f78800
treeaa1ed0f01303f1b934f62c5be3679a0ccee2e863
parent2b02db1b4cb2152e4aa2ac441bcc984ef3b929e3
Use ip_parse() and ipv6_parse() and variants in more places.

This saves some code and improves clarity, in my opinion.

Some of these changes just change an inet_pton() call into a similar
ip_parse() or ipv6_parse() call.  In those cases the benefit is better
type safety, since inet_pton()'s output parameter is type "void *".

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
lib/bfd.c
lib/netdev-dummy.c
lib/ovs-router.c
lib/packets.c
lib/socket-util.c
ovn/lib/lex.c
vswitchd/bridge.c