]> The Tcpdump Group git mirrors - tcpdump/commitdiff
IPv6 mobility: Use more ND_TTEST_n() macros
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 7 Jan 2018 20:20:23 +0000 (21:20 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 7 Jan 2018 20:20:23 +0000 (21:20 +0100)
print-mobility.c

index bb56b9a4f2a82539a6c2cf62ca3cf59392fd42e7..6ac3f2c866ac4351a421bafa2fcc40b97642ab64 100644 (file)
@@ -212,7 +212,7 @@ mobility_print(netdissect_options *ndo,
        /* 'ep' points to the end of available data. */
        ep = ndo->ndo_snapend;
 
-       if (!ND_TTEST(mh->ip6m_len)) {
+       if (!ND_TTEST_1(mh->ip6m_len)) {
                /*
                 * There's not enough captured data to include the
                 * mobility header length.