]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-otv.c
Add program_name field in the netdissect_options structure
[tcpdump] / print-otv.c
index 6daec446d2ef81cdf26c1fd265d6aef9c3cbcdc0..7f619df33dd99c2b9aee4a8d18e5f8120a12e566 100644 (file)
  * Original code by Francesco Fondelli (francesco dot fondelli, gmail dot com)
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
 #include <tcpdump-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 
 /*
@@ -38,9 +37,9 @@
 void
 otv_print(netdissect_options *ndo, const u_char *bp, u_int len)
 {
-    u_int8_t flags;
-    u_int32_t overlay_id;
-    u_int32_t instance_id;
+    uint8_t flags;
+    uint32_t overlay_id;
+    uint32_t instance_id;
 
     if (len < 8) {
         ND_PRINT((ndo, "[|OTV]"));