X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fb2479d733dbe8a991d11909b319341f7db62ab1..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-eap.c?ds=sidebyside diff --git a/print-eap.c b/print-eap.c index f0a5de05..797224d6 100644 --- a/print-eap.c +++ b/print-eap.c @@ -156,6 +156,7 @@ eap_print(netdissect_options *ndo, u_int eap_type, tlen, type, subtype; int count=0, len; + ndo->ndo_protocol = "eap"; tptr = cp; tlen = length; eap = (const struct eap_frame_t *)cp; @@ -206,14 +207,14 @@ eap_print(netdissect_options *ndo, case EAP_TYPE_IDENTITY: if (len - 5 > 0) { ND_PRINT(", Identity: "); - safeputs(ndo, tptr + 5, len - 5); + (void)nd_printzp(ndo, tptr + 5, len - 5, NULL); } break; case EAP_TYPE_NOTIFICATION: if (len - 5 > 0) { ND_PRINT(", Notification: "); - safeputs(ndo, tptr + 5, len - 5); + (void)nd_printzp(ndo, tptr + 5, len - 5, NULL); } break; @@ -295,11 +296,5 @@ eap_print(netdissect_options *ndo, return; trunc: - ND_PRINT("\n\t[|EAP]"); + nd_print_trunc(ndo); } - -/* - * Local Variables: - * c-basic-offset: 4 - * End: - */