]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msnlb.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-msnlb.c
index 99b22a025ca9e6eba6fc534628c5cbab4ef0ae3c..4e242df652cc81b97bdb252780d44ce2e65b82d2 100644 (file)
@@ -28,9 +28,7 @@
 
 /* \summary: MS Network Load Balancing's (NLB) heartbeat printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#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,",
-               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));
-       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));
 }