]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-msnlb.c
Add program_name field in the netdissect_options structure
[tcpdump] / print-msnlb.c
index fcd0006482687850fae573e303beb9604209256a..27828f4067e30df6e7ce2557ddda478d6df295cf 100644 (file)
  * SUCH DAMAGE.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
 #include <tcpdump-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
 #include "extract.h"
 
@@ -51,7 +50,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,",