]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-zephyr.c
CVE-2017-12900/Properly terminate all struct tok arrays.
[tcpdump] / print-zephyr.c
index 700d0bc088a5b24f6acf0f77c9490bcb4bee9836..eb7e382bc54491b50026dad383b4f58ee87ea6ce 100644 (file)
  * PURPOSE.
  */
 
+/* \summary: Zephyr printer */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
 
-#include "interface.h"
+#include "netdissect.h"
 
 struct z_packet {
     const char *version;
@@ -74,7 +76,8 @@ static const struct tok z_types[] = {
     { Z_PACKET_SERVACK,                "serv-ack" },
     { Z_PACKET_SERVNAK,                "serv-nak" },
     { Z_PACKET_CLIENTACK,      "client-ack" },
-    { Z_PACKET_STAT,           "stat" }
+    { Z_PACKET_STAT,           "stat" },
+    { 0,                       NULL }
 };
 
 static char z_buf[256];