]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mptcp.c
Fix spaces
[tcpdump] / print-mptcp.c
index cca33b619128bfeb1ca9ebae695d6a45ac7d36f5..631b4e80bde456db04c2e7943d1b663f136cbc77 100644 (file)
@@ -37,7 +37,7 @@
 /* specification: RFC 6824 */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include "netdissect-stdinc.h"
@@ -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;
 }