X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fb2479d733dbe8a991d11909b319341f7db62ab1..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-vrrp.c?ds=sidebyside diff --git a/print-vrrp.c b/print-vrrp.c index b0db29ce..71f70f0c 100644 --- a/print-vrrp.c +++ b/print-vrrp.c @@ -110,6 +110,7 @@ vrrp_print(netdissect_options *ndo, int version, type, auth_type = VRRP_AUTH_NONE; /* keep compiler happy */ const char *type_s; + ndo->ndo_protocol = "vrrp"; ND_TCHECK_1(bp); version = (EXTRACT_U_1(bp) & 0xf0) >> 4; type = EXTRACT_U_1(bp) & 0x0f; @@ -170,7 +171,7 @@ vrrp_print(netdissect_options *ndo, if (version == 2 && auth_type == VRRP_AUTH_SIMPLE) { /* simple text password */ ND_TCHECK_1(bp + 7); ND_PRINT(" auth \""); - if (fn_printn(ndo, bp, 8, ndo->ndo_snapend)) { + if (nd_printn(ndo, bp, 8, ndo->ndo_snapend)) { ND_PRINT("\""); goto trunc; } @@ -179,5 +180,5 @@ vrrp_print(netdissect_options *ndo, } return; trunc: - ND_PRINT("[|vrrp]"); + nd_print_trunc(ndo); }