#include "netdissect.h"
#include "extract.h"
-static const char tstr[] = "[|ppi]";
typedef struct ppi_header {
nd_uint8_t ppi_ver;
ndo->ndo_protocol = "ppi";
if (caplen < sizeof(ppi_header_t)) {
- ND_PRINT(" %s", tstr);
+ nd_print_trunc(ndo);
return (caplen);
}
* If we don't have the entire PPI header, don't
* bother.
*/
- ND_PRINT(" %s", tstr);
+ nd_print_trunc(ndo);
return (caplen);
}
if (len < sizeof(ppi_header_t)) {
- ND_PRINT(" %s", tstr);
+ nd_print_trunc(ndo);
return (len);
}
ND_TCHECK_4(hdr->ppi_dlt);
ndo->ndo_protocol = "ppi_if";
return (ppi_print(ndo, h, p));
}
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */
-
#endif /* DLT_PPI */