]> git.proxmox.com Git - mirror_ovs.git/commit - lib/socket-util.c
Make <host>:<port> parsing uniform treewide.
authorBen Pfaff <blp@ovn.org>
Wed, 11 Apr 2018 18:12:21 +0000 (11:12 -0700)
committerBen Pfaff <blp@ovn.org>
Mon, 16 Apr 2018 21:52:56 +0000 (14:52 -0700)
commit0b043300dbade23ce9435b7dd308473fea41e6fe
tree894f3f439c83e17b8d3806644eb7b19f8b13db89
parent1bb011218d046b5de765658e9f5fe45289462eea
Make <host>:<port> parsing uniform treewide.

I didn't realize until now that the tree had two different ways of parsing
strings in the form <host>:<port> and <port>:<host>.  There are the
long-standing inet_parse_active() and inet_parse_passive() functions, and
more recently the ipv46_parse() function.  This commit eliminates the
latter and changes the code to use the former.

The two implementations interpreted some input differently.  In particular,
the older functions required IPv6 addresses to be [bracketed], but the
newer ones do not.  For compatibility this patch changes the merged code to
use the more liberal interpretation.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Mark Michelson <mmichels@redhat.com>
lib/packets.c
lib/packets.h
lib/socket-util.c
lib/socket-util.h
ovn/utilities/ovn-nbctl.c
ovsdb/raft.c
tests/ovn-nbctl.at