]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more the EXTRACT_U_1() macro (36/n)
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 1 Dec 2017 07:56:01 +0000 (08:56 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 1 Dec 2017 08:03:19 +0000 (09:03 +0100)
In a unsigned_relts_print() call.
The Interval field is one byte length (RFC3973).

print-pim.c

index ac24845034f346e34c4037b0aa6a4d6d0ca13af7..fac8ef0e6067f7dc0a35363ea19782889a4f03e8 100644 (file)
@@ -827,7 +827,8 @@ pimv2_print(netdissect_options *ndo,
                                        ND_PRINT((ndo, "v%d", EXTRACT_U_1(bp)));
                                        if (*(bp+1) != 0) {
                                                ND_PRINT((ndo, ", interval "));
-                                               unsigned_relts_print(ndo, *(bp+1));
+                                               unsigned_relts_print(ndo,
+                                                                    EXTRACT_U_1(bp + 1));
                                        }
                                        if (EXTRACT_BE_U_2(bp + 2) != 0) {
                                                ND_PRINT((ndo, " ?0x%04x?", EXTRACT_BE_U_2(bp + 2)));