X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e2982e7f6f0b624a773ec5a58885ee80fab46d34..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-eap.c diff --git a/print-eap.c b/print-eap.c index 55b04de8..797224d6 100644 --- a/print-eap.c +++ b/print-eap.c @@ -21,10 +21,10 @@ /* \summary: Extensible Authentication Protocol (EAP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" #include "extract.h" @@ -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: - */