]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msnlb.c
IPoIB: Add the output with -e for a capture test
[tcpdump] / print-msnlb.c
index 997341e017d0f3c92385cc1089a6a7d9d344c5ec..5d25f568265c6c0df486bb846956640914f7ab28 100644 (file)
@@ -52,14 +52,15 @@ 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)));
+               GET_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_trunc(ndo);
 }