#include "extract.h"
#include "af.h"
-static const char tstr[] = " [|null]";
/*
* The DLT_NULL packet header is 4 bytes long. It contains a host-byte-order
goto trunc;
ND_TCHECK_4(p);
- memcpy((char *)&family, (const char *)p, sizeof(family));
+ family = GET_HE_U_4(p);
/*
* This isn't necessarily in our host byte order; if this is
return (NULL_HDRLEN);
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return (NULL_HDRLEN);
}
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */