X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c1b92ea1d4f508c72b1ffe8e08eb766ac39c7018..a24cccfd4abcda51db9f73f46d425c7c1e357a87:/print-eigrp.c diff --git a/print-eigrp.c b/print-eigrp.c index 022c9355..d206237d 100644 --- a/print-eigrp.c +++ b/print-eigrp.c @@ -35,7 +35,6 @@ #include "extract.h" #include "addrtoname.h" -static const char tstr[] = " [|eigrp]"; struct eigrp_common_header { nd_uint8_t version; @@ -228,6 +227,7 @@ eigrp_print(netdissect_options *ndo, const u_char *pptr, u_int len) const struct eigrp_tlv_at_ext_t *eigrp_tlv_at_ext; } tlv_ptr; + ndo->ndo_protocol = "eigrp"; tptr=pptr; eigrp_com_header = (const struct eigrp_common_header *)pptr; ND_TCHECK_SIZE(eigrp_com_header); @@ -523,5 +523,5 @@ eigrp_print(netdissect_options *ndo, const u_char *pptr, u_int len) } return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); }