mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 02:38:41 +00:00
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)
This commit is contained in:
parent
8d6102132b
commit
54e806f1c2
@ -411,7 +411,7 @@ if_prefix_add_ipv6 (struct interface *ifp, struct connected *ifc)
|
|||||||
char addrbuf[PREFIX_STRLEN];
|
char addrbuf[PREFIX_STRLEN];
|
||||||
|
|
||||||
zlog_warn ("Can't set %s on interface %s",
|
zlog_warn ("Can't set %s on interface %s",
|
||||||
prefix2str(ifc->address->prefix, addrbuf, sizeof(addrbuf)),
|
prefix2str(ifc->address, addrbuf, sizeof(addrbuf)),
|
||||||
ifp->name);
|
ifp->name);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -424,7 +424,7 @@ if_prefix_delete_ipv6 (struct interface *ifp, struct connected *ifc)
|
|||||||
char addrbuf[PREFIX_STRLEN];
|
char addrbuf[PREFIX_STRLEN];
|
||||||
|
|
||||||
zlog_warn ("Can't delete %s on interface %s",
|
zlog_warn ("Can't delete %s on interface %s",
|
||||||
prefix2str(ifc->address->prefix, addrbuf, sizeof(addrbuf)),
|
prefix2str(ifc->address, addrbuf, sizeof(addrbuf)),
|
||||||
ifp->name);
|
ifp->name);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user