]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vtp.c
Reorganize netdissect.h
[tcpdump] / print-vtp.c
index b771c643cde914e3117d79f486a70ecb51107441..cba34a6c6081c9ec30e01f8d8a8496e67c431df7 100644 (file)
@@ -26,9 +26,9 @@
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
 #include "extract.h"
 
@@ -240,7 +240,7 @@ vtp_print (netdissect_options *ndo,
 
            ND_TCHECK2(*tptr, len);
 
-           vtp_vlan = (struct vtp_vlan_*)tptr;
+           vtp_vlan = (const struct vtp_vlan_*)tptr;
            ND_PRINT((ndo, "\n\tVLAN info status %s, type %s, VLAN-id %u, MTU %u, SAID 0x%08x, Name %s",
                   tok2str(vtp_vlan_status,"Unknown",vtp_vlan->status),
                   tok2str(vtp_vlan_type_values,"Unknown",vtp_vlan->type),