]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-eigrp.c
IPX: Add a length check
[tcpdump] / print-eigrp.c
index 022c93553a7220d926ab5d85ad6d3cb79b0f4272..d206237dd22f1306290a6742719f455c5a5c4426 100644 (file)
@@ -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);
 }