X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/546558eabd81cfc36a81a4df728fdfea0d83b41a..refs/heads/master:/print-msnlb.c diff --git a/print-msnlb.c b/print-msnlb.c index 5fdf5575..4e242df6 100644 --- a/print-msnlb.c +++ b/print-msnlb.c @@ -28,9 +28,7 @@ /* \summary: MS Network Load Balancing's (NLB) heartbeat printer */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -54,13 +52,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("[|MS NLB]"); + 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)); }