]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tftp.c
Default to first interface from pcap_findalldevs()
[tcpdump] / print-tftp.c
index 9b88e74f1022767590a3c52fefd9f59fc843c0f6..e7201ebd3ee626deefc60c62bdefe10e469d856c 100644 (file)
  * Format and print trivial file transfer protocol packets.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <string.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 
 /*
@@ -131,7 +130,7 @@ tftp_print(netdissect_options *ndo,
        case RRQ:
        case WRQ:
        case OACK:
-               p = (u_char *)tp->th_stuff;
+               p = (const u_char *)tp->th_stuff;
                ND_PRINT((ndo, " "));
                /* Print filename or first option */
                if (opcode != OACK)