]> The Tcpdump Group git mirrors - tcpdump/commitdiff
MS NLB: Remove a redundant ND_TCHECK_SIZE call
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 8 Dec 2020 11:53:59 +0000 (12:53 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 8 Dec 2020 11:59:16 +0000 (12:59 +0100)
Moreover:
Remove the trunc label.

print-msnlb.c

index 99b22a025ca9e6eba6fc534628c5cbab4ef0ae3c..de360ea9a2e887ff70c02c439d987e4ed9eec1f1 100644 (file)
@@ -54,13 +54,9 @@ msnlb_print(netdissect_options *ndo, const u_char *bp)
 
        ndo->ndo_protocol = "msnlb";
        hb = (const struct msnlb_heartbeat_pkt *)bp;
-       ND_TCHECK_SIZE(hb);
 
        ND_PRINT("MS NLB heartbeat, host priority: %u,",
                GET_LE_U_4((hb->host_prio)));
        ND_PRINT(" cluster IP: %s,", GET_IPADDR_STRING(hb->virtual_ip));
        ND_PRINT(" host IP: %s", GET_IPADDR_STRING(hb->host_ip));
-       return;
-trunc:
-       nd_print_trunc(ndo);
 }