summaryrefslogtreecommitdiffstats
path: root/zebra/ioctl_solaris.c
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2015-09-16 04:12:31 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-09 16:52:16 +0200
commit54e806f1c29123968fa244c6d08add8aa11e7faf (patch)
tree6e0b95701b89796381a2cec59a3350c8d0d95a2d /zebra/ioctl_solaris.c
parentbuild/solaris: create ioctl_solaris.h (diff)
downloadfrr-54e806f1c29123968fa244c6d08add8aa11e7faf.tar.xz
frr-54e806f1c29123968fa244c6d08add8aa11e7faf.zip
zebra/ioctl_solaris: Fix use of prefix2str in if_prefix_add/delete_ipv6
First argument of prefix2str pointed to ifc->address->prefix, but no prefix exists in address. Should have been ifc->address. Signed-off-by: Martin Winter <mwinter@opensourcerouting.org> (cherry picked from commit fe56125bbcbc0c503ae6bd0b934a4940c4693b4f)
Diffstat (limited to 'zebra/ioctl_solaris.c')
-rw-r--r--zebra/ioctl_solaris.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/ioctl_solaris.c b/zebra/ioctl_solaris.c
index aa2b9a4e0..12737cbf0 100644
--- a/zebra/ioctl_solaris.c
+++ b/zebra/ioctl_solaris.c
@@ -411,7 +411,7 @@ if_prefix_add_ipv6 (struct interface *ifp, struct connected *ifc)
char addrbuf[PREFIX_STRLEN];
zlog_warn ("Can't set %s on interface %s",
- prefix2str(ifc->address->prefix, addrbuf, sizeof(addrbuf)),
+ prefix2str(ifc->address, addrbuf, sizeof(addrbuf)),
ifp->name);
return 0;
@@ -424,7 +424,7 @@ if_prefix_delete_ipv6 (struct interface *ifp, struct connected *ifc)
char addrbuf[PREFIX_STRLEN];
zlog_warn ("Can't delete %s on interface %s",
- prefix2str(ifc->address->prefix, addrbuf, sizeof(addrbuf)),
+ prefix2str(ifc->address, addrbuf, sizeof(addrbuf)),
ifp->name);
return 0;