]> git.proxmox.com Git - ovs.git/blobdiff - lib/bfd.c
Use ip_parse() and ipv6_parse() and variants in more places.
[ovs.git] / lib / bfd.c
index adac66646cc1d9a11ec1ca85eb4d5e450381c7ca..66c99fb8c23a14c1a038b903e59400e3127978f3 100644 (file)
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -939,7 +939,7 @@ bfd_forwarding__(struct bfd *bfd) OVS_REQUIRES(mutex)
 static bool
 bfd_lookup_ip(const char *host_name, struct in_addr *addr)
 {
-    if (!inet_pton(AF_INET, host_name, addr)) {
+    if (!ip_parse(host_name, &addr->s_addr)) {
         VLOG_ERR_RL(&rl, "\"%s\" is not a valid IP address", host_name);
         return false;
     }