summaryrefslogtreecommitdiffstats
path: root/zebra/ioctl_solaris.c
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2015-09-15 19:12:31 -0700
committerMartin Winter <mwinter@opensourcerouting.org>2015-10-16 23:50:46 -0700
commitfe56125bbcbc0c503ae6bd0b934a4940c4693b4f (patch)
tree25dc1d7b525c4c5cfead2fec9d4061eed4f9399a /zebra/ioctl_solaris.c
parentba6cd587b4114528c8d6af439c4f49c7bb95a92b (diff)
downloadquagga-fe56125bbcbc0c503ae6bd0b934a4940c4693b4f.tar.bz2
quagga-fe56125bbcbc0c503ae6bd0b934a4940c4693b4f.tar.xz
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>
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 aa2b9a4e..12737cbf 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;