inet_ntop(AF_INET, &lsdesc->neighbor_router_id,
buf2, sizeof(buf2));
sprintf(buf, "%s/%s", buf2, buf1);
+
+ return buf;
}
- } else
- return NULL;
+ }
}
- return buf;
+ return NULL;
}
static int ospf6_router_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
if ((current + sizeof(struct ospf6_network_lsdesc)) <= end) {
lsdesc = (struct ospf6_network_lsdesc *)current;
- if (buf)
+ if (buf) {
inet_ntop(AF_INET, &lsdesc->router_id, buf,
buflen);
- } else
- return NULL;
+ return buf;
+ }
+ }
}
- return (buf);
+ return NULL;
}
static int ospf6_network_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
}
} while (current <= end);
}
- return (buf);
+ return NULL;
}
static int ospf6_intra_prefix_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,