summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_vty.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2017-06-29 06:21:14 +0200
committerJafar Al-Gharaibeh <jafar@atcorp.com>2017-06-29 06:21:14 +0200
commit8c9b599276e86fd0b62342e3bc74acfd16086ef6 (patch)
tree14b6468bcd29506bd7172d18b50099e51774776a /ospfd/ospf_vty.c
parentospfd: Bring in some OSPF useful changes that were lost during Quagga fork (diff)
downloadfrr-8c9b599276e86fd0b62342e3bc74acfd16086ef6.tar.xz
frr-8c9b599276e86fd0b62342e3bc74acfd16086ef6.zip
ospfd: The CLI validates the IP address
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to '')
-rw-r--r--ospfd/ospf_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 890a272b9..a2e1d601f 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -7031,7 +7031,7 @@ DEFUN (ip_ospf_area,
// Check if we have an address arg and proccess it
if (argc == idx + 3) {
- VTY_GET_IPV4_ADDRESS("interface address", addr, argv[(idx+2)]->arg);
+ inet_aton(argv[idx+2]->arg, &addr);
// update/create address-level params
params = ospf_get_if_params ((ifp), (addr));
if (OSPF_IF_PARAM_CONFIGURED(params, if_area))
@@ -7091,7 +7091,7 @@ DEFUN (no_ip_ospf_area,
// Check if we have an address arg and proccess it
if (argc == idx + 3) {
- VTY_GET_IPV4_ADDRESS("interface address", addr, argv[(idx+2)]->arg);
+ inet_aton(argv[idx+2]->arg, &addr);
params = ospf_lookup_if_params (ifp, addr);
if ((params) == NULL)
return CMD_SUCCESS;