*/
-#define NETDISSECT_REWORKED
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <tcpdump-stdinc.h>
-#include "interface.h"
+#include "netdissect.h"
#include "extract.h"
#define UDLD_HEADER_LEN 4
tptr = pptr;
- if (!ND_TTEST2(*tptr, UDLD_HEADER_LEN))
- goto trunc;
+ ND_TCHECK2(*tptr, UDLD_HEADER_LEN);
code = UDLD_EXTRACT_OPCODE(*tptr);
while (tptr < (pptr+length)) {
- if (!ND_TTEST2(*tptr, 4))
- goto trunc;
+ ND_TCHECK2(*tptr, 4);
type = EXTRACT_16BITS(tptr);
len = EXTRACT_16BITS(tptr+2);