X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ed85e20e4d6a27d5405f37366dd34b64c10a9211..refs/pull/482/head:/print-vqp.c diff --git a/print-vqp.c b/print-vqp.c index 04dbcc2e..76140113 100644 --- a/print-vqp.c +++ b/print-vqp.c @@ -17,14 +17,13 @@ * Original code by Carles Kishimoto */ -#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include -#include "interface.h" +#include "netdissect.h" #include "extract.h" #include "addrtoname.h" @@ -167,8 +166,7 @@ vqp_print(netdissect_options *ndo, register const u_char *pptr, register u_int l } /* did we capture enough for fully decoding the object ? */ - if (!ND_TTEST2(*tptr, vqp_obj_len)) - goto trunc; + ND_TCHECK2(*tptr, vqp_obj_len); switch(vqp_obj_type) { case VQP_OBJ_IP_ADDRESS: