From 43691c09baea5d6e7d5218a01e94114da97b2e4e Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 6 May 2016 19:29:36 -0400 Subject: [PATCH] isisd: Use correct boolean operator type. Signed-off-by: Donald Sharp Reviewed-by: Don Slice Reviewed-by: Daniel Walton --- isisd/isis_lsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index 3801eb737b..6c3d7c00ff 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -962,7 +962,7 @@ lsp_print_detail (struct isis_lsp *lsp, struct vty *vty, char dynhost) memcpy (in6.s6_addr, ipv6_reach->prefix, PSIZE (ipv6_reach->prefix_len)); inet_ntop (AF_INET6, &in6, (char *)buff, BUFSIZ); - if ((ipv6_reach->control_info && + if ((ipv6_reach->control_info & CTRL_INFO_DISTRIBUTION) == DISTRIBUTION_INTERNAL) vty_out (vty, " Metric : %-8d IPv6-Internal : %s/%d%s", ntohl (ipv6_reach->metric), -- 2.39.5