]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vrrp.c
Remove many (762) now redundant ND_TCHECK_n() calls
[tcpdump] / print-vrrp.c
index 2739e37c6294222a3a453723981e136a9dd44329..b795a3394485ca1a2553201b32e4dda97936b74d 100644 (file)
@@ -111,7 +111,6 @@ vrrp_print(netdissect_options *ndo,
        const char *type_s;
 
        ndo->ndo_protocol = "vrrp";
-       ND_TCHECK_1(bp);
        version = (GET_U_1(bp) & 0xf0) >> 4;
        type = GET_U_1(bp) & 0x0f;
        type_s = tok2str(type2str, "unknown type (%u)", type);
@@ -120,7 +119,6 @@ vrrp_print(netdissect_options *ndo,
                ND_PRINT(", (ttl %u)", ttl);
        if (version < 2 || version > 3 || type != VRRP_TYPE_ADVERTISEMENT)
                return;
-       ND_TCHECK_1(bp + 2);
        ND_PRINT(", vrid %u, prio %u", GET_U_1(bp + 1), GET_U_1(bp + 2));
        ND_TCHECK_1(bp + 5);