X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fbfd.c;h=5413105bb7c069e5c585ec3f19d7fb1f414dc9a2;hb=1bbd17282444f67e6509ecc930326ec4314da93f;hp=a8c229415aecd5c002d0798439d7382b7a8afadf;hpb=4f57ad100f4556c45a7ad4c4fe904545a99976e5;p=sliver-openvswitch.git diff --git a/lib/bfd.c b/lib/bfd.c index a8c229415..5413105bb 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -878,7 +878,7 @@ bfd_forwarding__(struct bfd *bfd) OVS_REQUIRES(mutex) static bool bfd_lookup_ip(const char *host_name, struct in_addr *addr) { - if (!inet_aton(host_name, addr)) { + if (!inet_pton(AF_INET, host_name, addr)) { VLOG_ERR_RL(&rl, "\"%s\" is not a valid IP address", host_name); return false; }