]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msnlb.c
NTP: Use tstr for truncation indicator.
[tcpdump] / print-msnlb.c
index 7cb0bf9079c3f0da6ce473ca8ce79e6f49a74d81..5264da496c9de753874c503bbc4c40c7aea8ac91 100644 (file)
  * SUCH DAMAGE.
  */
 
-#define NETDISSECT_REWORKED
+/* \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"
 
 struct msnlb_heartbeat_pkt {
-       u_int32_t unknown1;
-       u_int32_t unknown2;
-       u_int32_t host_prio;    /* little-endian */
-       u_int32_t virtual_ip;
-       u_int32_t host_ip;
+       uint32_t unknown1;
+       uint32_t unknown2;
+       uint32_t host_prio;     /* little-endian */
+       uint32_t virtual_ip;
+       uint32_t host_ip;
        /* the protocol is undocumented so we ignore the rest */
 };
 
@@ -51,7 +52,7 @@ msnlb_print(netdissect_options *ndo, const u_char *bp)
 {
        const struct msnlb_heartbeat_pkt *hb;
 
-       hb = (struct msnlb_heartbeat_pkt *)bp;
+       hb = (const struct msnlb_heartbeat_pkt *)bp;
        ND_TCHECK(*hb);
 
        ND_PRINT((ndo, "MS NLB heartbeat, host priority: %u,",