]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-stp.c
Default to first interface from pcap_findalldevs()
[tcpdump] / print-stp.c
index a89932d6580f9fd3e9652396eb80d490419763e7..47089e52247783aac2a456fc687ee1c77399492c 100644 (file)
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <stdio.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 
 #define        RSTP_EXTRACT_PORT_ROLE(x) (((x)&0x0C)>>2)
@@ -368,7 +368,7 @@ stp_print(netdissect_options *ndo, const u_char *p, u_int length)
     u_int                  mstp_len;
     u_int                  spb_len;
 
-    stp_bpdu = (struct stp_bpdu_*)p;
+    stp_bpdu = (const struct stp_bpdu_*)p;
 
     /* Minimum STP Frame size. */
     if (length < 4)