X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/546558eabd81cfc36a81a4df728fdfea0d83b41a..a24cccfd4abcda51db9f73f46d425c7c1e357a87:/print-ppi.c diff --git a/print-ppi.c b/print-ppi.c index c58a3627..398ed689 100644 --- a/print-ppi.c +++ b/print-ppi.c @@ -13,7 +13,6 @@ #include "netdissect.h" #include "extract.h" -static const char tstr[] = "[|ppi]"; typedef struct ppi_header { nd_uint8_t ppi_ver; @@ -66,7 +65,7 @@ ppi_print(netdissect_options *ndo, ndo->ndo_protocol = "ppi"; if (caplen < sizeof(ppi_header_t)) { - ND_PRINT(" %s", tstr); + nd_print_trunc(ndo); return (caplen); } @@ -78,11 +77,11 @@ ppi_print(netdissect_options *ndo, * 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); @@ -126,12 +125,4 @@ ppi_if_print(netdissect_options *ndo, ndo->ndo_protocol = "ppi_if"; return (ppi_print(ndo, h, p)); } - -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 8 - * End: - */ - #endif /* DLT_PPI */