]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vqp.c
NDOize safeputs() and safeputchar()
[tcpdump] / print-vqp.c
index 3245b33206d022824f3d7ebd57df2d3a02bea4b8..e583f44525b5e0dcd15486e398fb3655726dfa93 100644 (file)
  * Original code by Carles Kishimoto <[email protected]>
  */
 
+#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
 #include <tcpdump-stdinc.h>
 
-#include "netdissect.h"
+#include "interface.h"
 #include "extract.h"
 #include "addrtoname.h"
 
@@ -178,7 +179,7 @@ vqp_print(netdissect_options *ndo, register const u_char *pptr, register u_int l
        case VQP_OBJ_VLAN_NAME:
        case VQP_OBJ_VTP_DOMAIN:
        case VQP_OBJ_ETHERNET_PKT:
-            safeputs((const char *)tptr, vqp_obj_len);
+            safeputs(ndo, tptr, vqp_obj_len);
             break;
             /* those objects have similar semantics - fall through */
        case VQP_OBJ_MAC_ADDRESS: