#include <netdissect-stdinc.h>
#include "netdissect.h"
+#include "extract.h"
#include "addrtoname.h"
/*
int srcNwref;
int dstNwref;
- ND_TCHECK2(*bp, 2);
+ ND_TCHECK_2(bp);
if (length < 2)
goto trunc;
- srcNwref = bp[0];
- dstNwref = bp[1];
+ srcNwref = EXTRACT_U_1(bp);
+ dstNwref = EXTRACT_U_1(bp + 1);
length -= 2;
bp += 2;