X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/78651639891de4a150f23ab635ef940f6ee22d8e..HEAD:/print-decnet.c diff --git a/print-decnet.c b/print-decnet.c index 72482217..989776b4 100644 --- a/print-decnet.c +++ b/print-decnet.c @@ -20,10 +20,16 @@ */ /* \summary: DECnet printer */ +/* + * specification: Section 10.0 MESSAGES + * DECnet Digital Network Architecture + * Phase IV + * Routing Layer Functional Specification + * Order No. AA-X435A-TK + * Version 2.0.0 December 1983 + */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -482,6 +488,11 @@ decnet_print(netdissect_options *ndo, goto invalid; } + /* + * This length does not seem to be in any specification, but it is present + * in the test case packet capture, which is consistent with the Wireshark + * protocol decoder. + */ pktlen = GET_LE_U_2(ap); if (pktlen < sizeof(struct shorthdr)) { ND_PRINT(" (pktlen %u < %zu)", pktlen, sizeof(struct shorthdr));