summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-23 21:35:27 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-24 14:09:03 +0200
commitcd6c066eb3a62f7d68458a18df70a893b6f0db1d (patch)
treebb220cf874f29655fca7b95ff834c13bc20aae0f /eigrpd/eigrp_vty.c
parenteigrpd: Refactor eigrp_topoloy_table_lookup_ipv4 (diff)
downloadfrr-cd6c066eb3a62f7d68458a18df70a893b6f0db1d.tar.xz
frr-cd6c066eb3a62f7d68458a18df70a893b6f0db1d.zip
eigrpd: Refactor eigrp_network_[un]set to use prefix
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_vty.c')
-rw-r--r--eigrpd/eigrp_vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eigrpd/eigrp_vty.c b/eigrpd/eigrp_vty.c
index 465007478..4a8842f30 100644
--- a/eigrpd/eigrp_vty.c
+++ b/eigrpd/eigrp_vty.c
@@ -391,10 +391,10 @@ DEFUN (eigrp_network,
"EIGRP network prefix\n")
{
VTY_DECLVAR_CONTEXT(eigrp, eigrp);
- struct prefix_ipv4 p;
+ struct prefix p;
int ret;
- str2prefix_ipv4(argv[1]->arg, &p);
+ str2prefix(argv[1]->arg, &p);
ret = eigrp_network_set(eigrp, &p);
@@ -414,10 +414,10 @@ DEFUN (no_eigrp_network,
"EIGRP network prefix\n")
{
VTY_DECLVAR_CONTEXT(eigrp, eigrp);
- struct prefix_ipv4 p;
+ struct prefix p;
int ret;
- str2prefix_ipv4(argv[2]->arg, &p);
+ str2prefix(argv[2]->arg, &p);
ret = eigrp_network_unset(eigrp, &p);