X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e2982e7f6f0b624a773ec5a58885ee80fab46d34..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-lspping.c diff --git a/print-lspping.c b/print-lspping.c index 42c7a682..077f07b1 100644 --- a/print-lspping.c +++ b/print-lspping.c @@ -18,10 +18,10 @@ /* specification: RFC 4349 */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" #include "extract.h" @@ -30,6 +30,7 @@ #include "l2vpn.h" #include "oui.h" + /* * LSPPING common header * @@ -523,6 +524,7 @@ lspping_print(netdissect_options *ndo, const struct lspping_tlv_targetfec_subtlv_bgp_ipv6_t *lspping_tlv_targetfec_subtlv_bgp_ipv6; } subtlv_ptr; + ndo->ndo_protocol = "lspping"; tptr=pptr; lspping_com_header = (const struct lspping_common_header *)pptr; if (len < sizeof(struct lspping_common_header)) @@ -1085,12 +1087,6 @@ tooshort: ND_PRINT("\n\t\t packet is too short"); return; trunc: - ND_PRINT("\n\t\t packet exceeded snapshot"); + nd_print_trunc(ndo); return; } -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 8 - * End: - */