]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobility.c
IPoIB: Add the output with -e for a capture test
[tcpdump] / print-mobility.c
index 4dbfb6ff3b8ec5f7b56b97dcf4bfef38cfe78011..8272664bdd86f2bd3b3f21818a2f16eb86d72012 100644 (file)
@@ -227,7 +227,7 @@ mobility_print(netdissect_options *ndo,
                 * returned length, however, as it breaks out of the
                 * header-processing loop.
                 */
-               mhlen = ep - bp;
+               mhlen = (unsigned)(ep - bp);
                goto trunc;
        }
        mhlen = (GET_U_1(mh->ip6m_len) + 1) << 3;