]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pim.c
Use more the ND_TTEST_1() macro
[tcpdump] / print-pim.c
index 8e52de5a2843b7ebf37660df904a0ba18d05b4bd..fa6a345a8d7b3325a8bd8612fcc4a3ebd102148c 100644 (file)
@@ -259,7 +259,7 @@ pimv1_print(netdissect_options *ndo,
        ND_PRINT((ndo, " %s", tok2str(pimv1_type_str, "[type %u]", type)));
        switch (type) {
        case PIMV1_TYPE_QUERY:
-               if (ND_TTEST(bp[8])) {
+               if (ND_TTEST_1(bp + 8)) {
                        switch (EXTRACT_U_1(bp + 8) >> 4) {
                        case 0:
                                ND_PRINT((ndo, " Dense-mode"));