]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-stp.c
Default to first interface from pcap_findalldevs()
[tcpdump] / print-stp.c
index 93bb600028585558bf2ae53f3d8ecd7aea4f5a16..47089e52247783aac2a456fc687ee1c77399492c 100644 (file)
@@ -9,16 +9,15 @@
  * Contributed by Lennert Buytenhek <[email protected]>
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #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)
@@ -369,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)