X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/21b12733b62cd4ec2cbe8dd96f13003e61a05944..00e8b701fc044af33c6777054a0a412dbdb3f844:/print-pim.c diff --git a/print-pim.c b/print-pim.c index 761ab6e1..1ec93060 100644 --- a/print-pim.c +++ b/print-pim.c @@ -137,7 +137,7 @@ static const struct tok pimv2_df_election_flag_values[] = { /* * XXX: We consider a case where IPv6 is not ready yet for portability, - * but PIM dependent defintions should be independent of IPv6... + * but PIM dependent definitions should be independent of IPv6... */ struct pim { @@ -256,7 +256,6 @@ pimv1_join_prune_print(netdissect_options *ndo, return; trunc: nd_print_trunc(ndo); - return; } void @@ -338,7 +337,6 @@ pimv1_print(netdissect_options *ndo, trunc: nd_print_trunc(ndo); - return; } /* @@ -450,7 +448,6 @@ cisco_autorp_print(netdissect_options *ndo, trunc: nd_print_trunc(ndo); - return; } void @@ -602,8 +599,7 @@ pimv2_addr_print(netdissect_options *ndo, if (af == AF_INET) { if (!silent) ND_PRINT("%s", GET_IPADDR_STRING(bp)); - } - else if (af == AF_INET6) { + } else if (af == AF_INET6) { if (!silent) ND_PRINT("%s", GET_IP6ADDR_STRING(bp)); } @@ -619,8 +615,7 @@ pimv2_addr_print(netdissect_options *ndo, if (GET_U_1(bp + 1) != 32) ND_PRINT("/%u", GET_U_1(bp + 1)); } - } - else if (af == AF_INET6) { + } else if (af == AF_INET6) { if (!silent) { ND_PRINT("%s", GET_IP6ADDR_STRING(bp + 2)); if (GET_U_1(bp + 1) != 128)