X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/513f782ae18791f0c925b9235da749b38159b607..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-lmp.c diff --git a/print-lmp.c b/print-lmp.c index c771488d..6b28544c 100644 --- a/print-lmp.c +++ b/print-lmp.c @@ -21,7 +21,7 @@ /* OIF UNI 1.0: http://www.oiforum.com/public/documents/OIF-UNI-01.0.pdf */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif #include "netdissect-stdinc.h" @@ -31,6 +31,7 @@ #include "addrtoname.h" #include "gmpls.h" + /* * LMP common header * @@ -438,6 +439,7 @@ lmp_print(netdissect_options *ndo, uint32_t i; } bw; + ndo->ndo_protocol = "lmp"; tptr=pptr; lmp_com_header = (const struct lmp_common_header *)pptr; ND_TCHECK_SIZE(lmp_com_header); @@ -1131,11 +1133,5 @@ lmp_print(netdissect_options *ndo, } return; trunc: - ND_PRINT("\n\t\t packet exceeded snapshot"); + nd_print_trunc(ndo); } -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 8 - * End: - */