]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mptcp.c
Fixed some warnings, added print-zep.c to CMakeLists
[tcpdump] / print-mptcp.c
index 4dd450b9f52ad70931f215e144fe0ff37f42d9de..631b4e80bde456db04c2e7943d1b663f136cbc77 100644 (file)
@@ -437,12 +437,18 @@ mptcp_print(netdissect_options *ndo,
         const struct mptcp_option *opt;
         u_int subtype;
 
+       ndo->ndo_protocol = "mptcp";
         if (len < 3)
                 return 0;
 
         opt = (const struct mptcp_option *) cp;
+        ND_TCHECK_SIZE(opt);
         subtype = min(MPTCP_OPT_SUBTYPE(opt->sub_etc), MPTCP_SUB_FCLOSE + 1);
 
         ND_PRINT(" %s", mptcp_options[subtype].name);
         return mptcp_options[subtype].print(ndo, cp, len, flags);
+
+trunc:
+        nd_print_trunc(ndo);
+        return 0;
 }