]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-hsrp.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-hsrp.c
index b29135f38c8b77dd13e378c96e16987f2fd381ac..cc9655ca214292f8ef0f573edb288d9aff4964d6 100644 (file)
@@ -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);