X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/77ece6d435c77c3bf1ff221e295408ca268444df..c39d40a767a1ae36171e5bcbf6f157ff3e80fb6c:/print-msnlb.c diff --git a/print-msnlb.c b/print-msnlb.c index 3d201fa3..8afaa7fe 100644 --- a/print-msnlb.c +++ b/print-msnlb.c @@ -52,14 +52,11 @@ msnlb_print(netdissect_options *ndo, const u_char *bp) { const struct msnlb_heartbeat_pkt *hb; + 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)); }