X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/32e24ead3b2a171e5f5eff50d7231c2514eda9b4..b51a0dafc7861eb31d21524ec067d7c529a664b8:/print-msnlb.c diff --git a/print-msnlb.c b/print-msnlb.c index 7a86ff06..8afaa7fe 100644 --- a/print-msnlb.c +++ b/print-msnlb.c @@ -54,13 +54,9 @@ msnlb_print(netdissect_options *ndo, const u_char *bp) ndo->ndo_protocol = "msnlb"; hb = (const struct msnlb_heartbeat_pkt *)bp; - ND_TCHECK_SIZE(hb); - ND_PRINT("MS NLB heartbeat, host priority: %u,", - EXTRACT_LE_U_4((hb->host_prio))); - ND_PRINT(" cluster IP: %s,", ipaddr_string(ndo, hb->virtual_ip)); - ND_PRINT(" host IP: %s", ipaddr_string(ndo, hb->host_ip)); - return; -trunc: - nd_print_trunc(ndo); + ND_PRINT("MS NLB heartbeat"); + ND_PRINT(", host priority: %u", GET_LE_U_4((hb->host_prio))); + ND_PRINT(", cluster IP: %s", GET_IPADDR_STRING(hb->virtual_ip)); + ND_PRINT(", host IP: %s", GET_IPADDR_STRING(hb->host_ip)); }