version 1.1.1.1, 2012/02/21 17:26:11
|
version 1.1.1.2, 2016/11/02 10:09:10
|
Line 32
|
Line 32
|
#include "zebra/rib.h" |
#include "zebra/rib.h" |
#include "zebra/rt.h" |
#include "zebra/rt.h" |
#include "zebra/interface.h" |
#include "zebra/interface.h" |
|
#include "zebra/ioctl_solaris.h" |
|
|
extern struct zebra_privs_t zserv_privs; |
extern struct zebra_privs_t zserv_privs; |
|
|
Line 309 if_get_flags_direct (const char *ifname, uint64_t *fla
|
Line 310 if_get_flags_direct (const char *ifname, uint64_t *fla
|
void |
void |
if_get_flags (struct interface *ifp) |
if_get_flags (struct interface *ifp) |
{ |
{ |
int ret4, ret6; | int ret4 = 0, ret6 = 0; |
uint64_t newflags = 0; |
uint64_t newflags = 0; |
uint64_t tmpflags; |
uint64_t tmpflags; |
|
|
Line 407 if_unset_flags (struct interface *ifp, uint64_t flags)
|
Line 408 if_unset_flags (struct interface *ifp, uint64_t flags)
|
int |
int |
if_prefix_add_ipv6 (struct interface *ifp, struct connected *ifc) |
if_prefix_add_ipv6 (struct interface *ifp, struct connected *ifc) |
{ |
{ |
char addrbuf[INET_ADDRSTRLEN]; | char addrbuf[PREFIX_STRLEN]; |
|
|
inet_ntop (AF_INET6, &(((struct prefix_ipv6 *) (ifc->address))->prefix), | zlog_warn ("Can't set %s on interface %s", |
addrbuf, sizeof (addrbuf)); | prefix2str(ifc->address, addrbuf, sizeof(addrbuf)), |
zlog_warn ("Can't set %s on interface %s", addrbuf, ifp->name); | ifp->name); |
|
|
return 0; |
return 0; |
|
|
Line 420 if_prefix_add_ipv6 (struct interface *ifp, struct conn
|
Line 421 if_prefix_add_ipv6 (struct interface *ifp, struct conn
|
int |
int |
if_prefix_delete_ipv6 (struct interface *ifp, struct connected *ifc) |
if_prefix_delete_ipv6 (struct interface *ifp, struct connected *ifc) |
{ |
{ |
char addrbuf[INET_ADDRSTRLEN]; | char addrbuf[PREFIX_STRLEN]; |
|
|
inet_ntop (AF_INET6, &(((struct prefix_ipv6 *) (ifc->address))->prefix), | zlog_warn ("Can't delete %s on interface %s", |
addrbuf, sizeof (addrbuf)); | prefix2str(ifc->address, addrbuf, sizeof(addrbuf)), |
zlog_warn ("Can't delete %s on interface %s", addrbuf, ifp->name); | ifp->name); |
|
|
return 0; |
return 0; |
|
|