From: Denis Ovsienko Date: Tue, 10 Dec 2024 12:07:15 +0000 (+0000) Subject: DECnet: Add comments about the specification. [skip ci] X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b170946478cdfd48aa075149c20afdb9d89fd6f1 DECnet: Add comments about the specification. [skip ci] --- diff --git a/print-decnet.c b/print-decnet.c index 6c1f0e1f..989776b4 100644 --- a/print-decnet.c +++ b/print-decnet.c @@ -20,6 +20,14 @@ */ /* \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 + */ #include @@ -480,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));