X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b30f3843b93c11e897e6d8888a91abf709a716ae..5ef0bcb5edd748de9d9af13c40da0395dfdd94e8:/print.c diff --git a/print.c b/print.c index 5b776d61..6e4cf893 100644 --- a/print.c +++ b/print.c @@ -201,8 +201,8 @@ static const struct printer printers[] = { { ppp_hdlc_if_print, DLT_PPP_SERIAL }, #endif { ppp_if_print, DLT_PPP }, -#ifdef DLT_PPP_WITHDIRECTION - { ppp_if_print, DLT_PPP_WITHDIRECTION }, +#ifdef DLT_PPP_PPPD + { ppp_if_print, DLT_PPP_PPPD }, #endif #ifdef DLT_PPP_ETHER { pppoe_if_print, DLT_PPP_ETHER }, @@ -403,7 +403,7 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h, (ndo->ndo_if_printer)(ndo, h, sp); } else { /* A printer quit because the packet was truncated; report it */ - ND_PRINT(" [|%s]", ndo->ndo_protocol); + nd_print_trunc(ndo); } hdrlen = ndo->ndo_ll_hdr_len;