]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msnlb.c
Use more the ND_TTEST_1() macro
[tcpdump] / print-msnlb.c
index 2721246d2a8f126dae2c17a86c09abde5889c9f8..2352ba38c78b2a26ecb972d8a3ffcab2de5fbe7e 100644 (file)
  * SUCH DAMAGE.
  */
 
+/* \summary: MS Network Load Balancing's (NLB) heartbeat printer */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
 #include "extract.h"
 
@@ -54,7 +56,7 @@ msnlb_print(netdissect_options *ndo, const u_char *bp)
        ND_TCHECK(*hb);
 
        ND_PRINT((ndo, "MS NLB heartbeat, host priority: %u,",
-               EXTRACT_LE_32BITS(&(hb->host_prio))));
+               EXTRACT_LE_U_4(&(hb->host_prio))));
        ND_PRINT((ndo, " cluster IP: %s,", ipaddr_string(ndo, &(hb->virtual_ip))));
        ND_PRINT((ndo, " host IP: %s", ipaddr_string(ndo, &(hb->host_ip))));
        return;