X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e2982e7f6f0b624a773ec5a58885ee80fab46d34..ca94c264bf987ff4ec7adffabca2a8d2e4e07efb:/print-mpcp.c?ds=sidebyside diff --git a/print-mpcp.c b/print-mpcp.c index 9c0675ad..ebfe74a6 100644 --- a/print-mpcp.c +++ b/print-mpcp.c @@ -18,10 +18,10 @@ /* \summary: IEEE 802.3ah Multi-Point Control Protocol (MPCP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" #include "extract.h" @@ -134,6 +134,7 @@ mpcp_print(netdissect_options *ndo, const u_char *pptr, u_int length) uint8_t grant_numbers, grant; uint8_t queue_sets, queue_set, report_bitmap, report; + ndo->ndo_protocol = "mpcp"; tptr=pptr; mpcp.common_header = (const struct mpcp_common_header_t *)pptr; @@ -246,11 +247,5 @@ mpcp_print(netdissect_options *ndo, const u_char *pptr, u_int length) return; trunc: - ND_PRINT("\n\t[|MPCP]"); + nd_print_trunc(ndo); } -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 8 - * End: - */