if (us >= 1000) {
ms = us / 1000;
us %= 1000;
+ (void)us; /* unused */
}
if (ms >= 1000) {
struct ospf_hello *hello;
int i;
- hello = (struct ospf_hello *)STREAM_PNT(s);
+ hello = (struct ospf_hello *)stream_pnt(s);
zlog_debug("Hello");
zlog_debug(" NetworkMask %s", inet_ntoa(hello->network_mask));
struct router_lsa *rl;
int i, len;
- rl = (struct router_lsa *)STREAM_PNT(s);
+ rl = (struct router_lsa *)stream_pnt(s);
zlog_debug(" Router-LSA");
zlog_debug(" flags %s",
struct network_lsa *nl;
int i, cnt;
- nl = (struct network_lsa *)STREAM_PNT(s);
+ nl = (struct network_lsa *)stream_pnt(s);
cnt = (ntohs(nl->header.length) - (OSPF_LSA_HEADER_SIZE + 4)) / 4;
zlog_debug(" Network-LSA");
int size;
int i;
- sl = (struct summary_lsa *)STREAM_PNT(s);
+ sl = (struct summary_lsa *)stream_pnt(s);
zlog_debug(" Summary-LSA");
zlog_debug(" Network Mask %s", inet_ntoa(sl->mask));
int size;
int i;
- al = (struct as_external_lsa *)STREAM_PNT(s);
+ al = (struct as_external_lsa *)stream_pnt(s);
zlog_debug(" %s", ospf_lsa_type_msg[al->header.type].str);
zlog_debug(" Network Mask %s", inet_ntoa(al->mask));
/* LSA Headers. */
while (length > 0) {
- lsa = (struct lsa_header *)STREAM_PNT(s);
+ lsa = (struct lsa_header *)stream_pnt(s);
ospf_lsa_header_dump(lsa);
stream_forward_getp(s, OSPF_LSA_HEADER_SIZE);
u_int32_t gp;
gp = stream_get_getp(s);
- dd = (struct ospf_db_desc *)STREAM_PNT(s);
+ dd = (struct ospf_db_desc *)stream_pnt(s);
zlog_debug("Database Description");
zlog_debug(" Interface MTU %d", ntohs(dd->mtu));
break;
}
- lsa = (struct lsa_header *)STREAM_PNT(s);
+ lsa = (struct lsa_header *)stream_pnt(s);
lsa_len = ntohs(lsa->length);
ospf_lsa_header_dump(lsa);
gp = stream_get_getp(s);
/* OSPF Header dump. */
- ospfh = (struct ospf_header *)STREAM_PNT(s);
+ ospfh = (struct ospf_header *)stream_pnt(s);
/* Until detail flag is set, return. */
if (!(term_debug_ospf_packet[ospfh->type - 1] & OSPF_DEBUG_DETAIL))
"debug ospf zebra [<interface|redistribute>]",
DEBUG_STR
OSPF_STR
- "OSPF Zebra information\n"
+ ZEBRA_STR
"Zebra interface\n"
"Zebra redistribute\n")
{
DEBUG_STR
OSPF_STR
"Instance ID\n"
- "OSPF Zebra information\n"
+ ZEBRA_STR
"Zebra interface\n"
"Zebra redistribute\n")
{
NO_STR
DEBUG_STR
OSPF_STR
- "OSPF Zebra information\n"
+ ZEBRA_STR
"Zebra interface\n"
"Zebra redistribute\n")
{
DEBUG_STR
OSPF_STR
"Instance ID\n"
- "OSPF Zebra information\n"
+ ZEBRA_STR
"Zebra interface\n"
"Zebra redistribute\n")
{