mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-23 23:16:01 +00:00
babeld: Cleanup xroute_stream
Cleanup warnings associated with xroute_stream Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
f1d1a0b0b7
commit
dd15627e26
@ -1063,7 +1063,7 @@ DEFUN (show_babel_route,
|
|||||||
} else {
|
} else {
|
||||||
zlog_err("Couldn't allocate route stream.");
|
zlog_err("Couldn't allocate route stream.");
|
||||||
}
|
}
|
||||||
xroutes = xroute_stream(0);
|
xroutes = xroute_stream();
|
||||||
if(xroutes) {
|
if(xroutes) {
|
||||||
while(1) {
|
while(1) {
|
||||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||||
@ -1109,7 +1109,7 @@ DEFUN (show_babel_route_prefix,
|
|||||||
} else {
|
} else {
|
||||||
zlog_err("Couldn't allocate route stream.");
|
zlog_err("Couldn't allocate route stream.");
|
||||||
}
|
}
|
||||||
xroutes = xroute_stream(0);
|
xroutes = xroute_stream();
|
||||||
if(xroutes) {
|
if(xroutes) {
|
||||||
while(1) {
|
while(1) {
|
||||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||||
@ -1166,7 +1166,7 @@ DEFUN (show_babel_route_addr,
|
|||||||
} else {
|
} else {
|
||||||
zlog_err("Couldn't allocate route stream.");
|
zlog_err("Couldn't allocate route stream.");
|
||||||
}
|
}
|
||||||
xroutes = xroute_stream(0);
|
xroutes = xroute_stream();
|
||||||
if(xroutes) {
|
if(xroutes) {
|
||||||
while(1) {
|
while(1) {
|
||||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||||
@ -1224,7 +1224,7 @@ DEFUN (show_babel_route_addr6,
|
|||||||
} else {
|
} else {
|
||||||
zlog_err("Couldn't allocate route stream.");
|
zlog_err("Couldn't allocate route stream.");
|
||||||
}
|
}
|
||||||
xroutes = xroute_stream(0);
|
xroutes = xroute_stream();
|
||||||
if(xroutes) {
|
if(xroutes) {
|
||||||
while(1) {
|
while(1) {
|
||||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||||
|
@ -189,7 +189,7 @@ struct xroute_stream {
|
|||||||
|
|
||||||
struct
|
struct
|
||||||
xroute_stream *
|
xroute_stream *
|
||||||
xroute_stream()
|
xroute_stream(void)
|
||||||
{
|
{
|
||||||
struct xroute_stream *stream = malloc(sizeof(struct xroute_stream));
|
struct xroute_stream *stream = malloc(sizeof(struct xroute_stream));
|
||||||
if(stream == NULL)
|
if(stream == NULL)
|
||||||
|
@ -45,7 +45,7 @@ int babel_ipv6_route_add (struct zapi_ipv6 *api, struct prefix_ipv6 *prefix,
|
|||||||
int babel_ipv6_route_delete (struct zapi_ipv6 *api, struct prefix_ipv6 *prefix,
|
int babel_ipv6_route_delete (struct zapi_ipv6 *api, struct prefix_ipv6 *prefix,
|
||||||
unsigned int ifindex);
|
unsigned int ifindex);
|
||||||
int xroutes_estimate(void);
|
int xroutes_estimate(void);
|
||||||
struct xroute_stream *xroute_stream();
|
struct xroute_stream *xroute_stream(void);
|
||||||
struct xroute *xroute_stream_next(struct xroute_stream *stream);
|
struct xroute *xroute_stream_next(struct xroute_stream *stream);
|
||||||
void xroute_stream_done(struct xroute_stream *stream);
|
void xroute_stream_done(struct xroute_stream *stream);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user