X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/787ba23d07a46527cc5da899158d9127b78e4ef8..cc2d4cbd8ca150504127f375d8b51b194958d95b:/print-hsrp.c diff --git a/print-hsrp.c b/print-hsrp.c index b29135f3..138a8c05 100644 --- a/print-hsrp.c +++ b/print-hsrp.c @@ -99,6 +99,7 @@ hsrp_print(netdissect_options *ndo, const u_char *bp, u_int len) const struct hsrp *hp = (const struct hsrp *) bp; uint8_t version; + ndo->ndo_protocol = "hsrp"; ND_TCHECK_1(hp->hsrp_version); version = EXTRACT_U_1(hp->hsrp_version); ND_PRINT("HSRPv%u", version); @@ -125,8 +126,8 @@ hsrp_print(netdissect_options *ndo, const u_char *bp, u_int len) unsigned_relts_print(ndo, EXTRACT_U_1(hp->hsrp_holdtime)); ND_PRINT(" priority=%u", EXTRACT_U_1(hp->hsrp_priority)); ND_PRINT(" auth=\""); - if (fn_printn(ndo, hp->hsrp_authdata, sizeof(hp->hsrp_authdata), - ndo->ndo_snapend)) { + if (nd_printn(ndo, hp->hsrp_authdata, sizeof(hp->hsrp_authdata), + ndo->ndo_snapend)) { ND_PRINT("\""); goto trunc; } @@ -134,5 +135,5 @@ hsrp_print(netdissect_options *ndo, const u_char *bp, u_int len) } return; trunc: - ND_PRINT("[|hsrp]"); + nd_print_trunc(ndo); }