]> The Tcpdump Group git mirrors - tcpdump/commitdiff
DECnet: Add comments about the specification. [skip ci]
authorDenis Ovsienko <[email protected]>
Tue, 10 Dec 2024 12:07:15 +0000 (12:07 +0000)
committerDenis Ovsienko <[email protected]>
Tue, 10 Dec 2024 12:07:15 +0000 (12:07 +0000)
print-decnet.c

index 6c1f0e1fd0767b43327f561c4f54786718fafded..989776b4df316af5fc91082fa39beac1dc56a6eb 100644 (file)
  */
 
 /* \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 <config.h>
 
@@ -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));