Skip to content

Commit 4ac4614

Browse files
committed
HSRP: Print the protocol name before any check
1 parent 13974d2 commit 4ac4614

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

print-hsrp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ hsrp_print(netdissect_options *ndo, const u_char *bp, u_int len)
9898
uint8_t version;
9999

100100
ndo->ndo_protocol = "hsrp";
101+
nd_print_protocol_caps(ndo);
102+
101103
version = GET_U_1(hp->hsrp_version);
102-
ND_PRINT("HSRPv%u", version);
104+
ND_PRINT("v%u", version);
103105
if (version != 0)
104106
return;
105107
ND_PRINT("-");

0 commit comments

Comments
 (0)