projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use ip_parse() and ipv6_parse() and variants in more places.
[cascardo/ovs.git]
/
lib
/
bfd.c
diff --git
a/lib/bfd.c
b/lib/bfd.c
index
adac666
..
66c99fb
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 (!i
net_pton(AF_INET, host_name,
addr)) {
+ if (!i
p_parse(host_name, &addr->s_
addr)) {
VLOG_ERR_RL(&rl, "\"%s\" is not a valid IP address", host_name);
return false;
}