]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-slow.c
Make another never-negative variable an unsigned.
[tcpdump] / print-slow.c
index 968534e5c9b06e52e581e1b3badfd067d06df536..42154140d0020a10b191908e3edfdd5ef649473a 100644 (file)
  * Original code by Hannes Gredler ([email protected])
  */
 
+/* \summary: IEEE "slow protocols" (802.3ad/802.3ah) printer */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 #include "addrtoname.h"
 #include "ether.h"
@@ -244,7 +246,7 @@ struct lacp_marker_tlv_terminator_t {
 static void slow_marker_lacp_print(netdissect_options *, register const u_char *, register u_int);
 static void slow_oam_print(netdissect_options *, register const u_char *, register u_int);
 
-const struct slow_common_header_t *slow_com_header;
+static const struct slow_common_header_t *slow_com_header;
 
 void
 slow_print(netdissect_options *ndo,
@@ -476,7 +478,7 @@ slow_oam_print(netdissect_options *ndo,
         const struct slow_oam_loopbackctrl_t *slow_oam_loopbackctrl;
     } tlv;
 
-    ptr.slow_oam_common_header = (struct slow_oam_common_header_t *)tptr;
+    ptr.slow_oam_common_header = (const struct slow_oam_common_header_t *)tptr;
     tptr += sizeof(struct slow_oam_common_header_t);
     tlen -= sizeof(struct slow_oam_common_header_t);