X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fb2479d733dbe8a991d11909b319341f7db62ab1..8030a66cdcbf81c88cbb7c38ef7a334e9f1941cd:/print-mptcp.c diff --git a/print-mptcp.c b/print-mptcp.c index 4dd450b9..631b4e80 100644 --- a/print-mptcp.c +++ b/print-mptcp.c @@ -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; }